I need a way in which I can within a for loop generate a lot a directory using mkdir.
for i in $(seq 1 1 ${k})
do
mkdir ...
done
The name of folder is a name with k numbers, such as 0_0_1 in which case k = 3.
The for-loop has to generate different names in which the position of 1 changes. so the names generated and directory created should be
1_0_0, 0_1_0, 0_0_1 for k = 3
and in that order as well.
is this possible?
k=4you would have1_0_0_0 0_1_0_0 0_0_1_0 0_0_0_1?