bash how to make a list of directories code example
Example 1: bash make folders according to a list
myArray=(A C G U)
triplet_len=${#myArray[@]}
j=0
while [ $j -lt $triplet_len ]
do
mkdir ./${triplet[j]} #create directiroy with name of triplet
cd ./${triplet[j]}
# do something
cd ..
((j++))
done
Example 2: bash make folders according to a list
IFS=','read -ra tokens <<< "$contents" ## your list
for x in "${tokens[@]}"
do
mkdir $x
cd $x
# so something tough $x.txt
cd ..
done