0

I would like to get the list of all possible combinations of 5 characters from a string containing 12 characters.

For example:

string = ABCDEFGHIJKL

sample should be output:

ABCDE
ABCDF
ABCDG
ABCDJ
etc....
coriano35
  • 177
  • 1
  • 3
  • 10
  • What's the `shell` tag for? --- What have you tried so far? – evolutionxbox Jul 11 '17 at 10:29
  • 1
    Would [this](https://stackoverflow.com/questions/4240080/generating-all-permutations-of-a-given-string) or [this](https://stackoverflow.com/questions/361/generate-list-of-all-possible-permutations-of-a-string) help? – evolutionxbox Jul 11 '17 at 10:31
  • Possible duplicate of [Recursively print all permutations of a string (Javascript)](https://stackoverflow.com/questions/39927452/recursively-print-all-permutations-of-a-string-javascript) – evolutionxbox Jul 11 '17 at 10:31
  • Cleaned up sentence structure to make the question more clear to readers. – Alexander Higgins Jul 12 '17 at 01:20
  • sorry for the late response, @evolutionxbox if we can generate this output using windows power shell (that's for the shell tag), Alexander Higgins thanks for rewriting my question, i just realized i just only need the combination not the permutation.. – coriano35 Jul 12 '17 at 01:42
  • Use Node and write a function as in the duplicate and you should be fine – evolutionxbox Jul 12 '17 at 07:30

0 Answers0