I want to create directories in bash by iterating over values from multiple loops (here for simplicity just 2) while skipping identical values. A demonstrating example looks like this:
for i in 1 2 3; do for j in 1 2 3; do mkdir $i$j; done, done
This gives me folders named
11, 12, 13, 21, 22, 23, 31, 32, 33, but I want to have only folders with different digits, so
33 should not exist. Is there a convenient for loop option to skip identical values?
Alternatively one could also create all folders and delete those with multiple values afterwards, but this seems very inefficient if there are multiple loops with many entries.