i need to generate a .txt list of all possible combinations of a predefined set of words with no word repeated in the same combination
For example, if the words are 1, 2, 3
I'd need the following list:
1 2 3 12 13 21 23 31 32 123 213 231 132 312 321