davidktw
Arch-Supremacy Member
- Joined
- Apr 15, 2010
- Messages
- 13,547
- Reaction score
- 1,300
Lets see if we have software engineers here familiar with the Linux/Unix environment.
PART ONE
Have an one liner shell command that can generate the following permutation output
The one liner shell command should be easy to manipulate to say permutate across different sets of permutations.
The example below is a permutation of
You are free to use any shell related tools/utilities/commands, just not another programming language to perform the job.
These tools/utilities/commands do not need to be natively available in the system, it can be optionally installed if required.
If you can come up with the one-liner shell script the use readily available tools/utilities/commands found in all/most linux installations, that would be a nice approach too.
Expected output
Have fun

PART ONE
Have an one liner shell command that can generate the following permutation output
The one liner shell command should be easy to manipulate to say permutate across different sets of permutations.
The example below is a permutation of
[A,B,C]⨯[x,y,z]⨯[1,2,3]You are free to use any shell related tools/utilities/commands, just not another programming language to perform the job.
These tools/utilities/commands do not need to be natively available in the system, it can be optionally installed if required.
If you can come up with the one-liner shell script the use readily available tools/utilities/commands found in all/most linux installations, that would be a nice approach too.
Expected output
Code:
A x 1
A x 2
A x 3
A y 1
A y 2
A y 3
A z 1
A z 2
A z 3
B x 1
B x 2
B x 3
B y 1
B y 2
B y 3
B z 1
B z 2
B z 3
C x 1
C x 2
C x 3
C y 1
C y 2
C y 3
C z 1
C z 2
C z 3
Have fun