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
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
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
Copyright © 2021 Codeinu
Forgot your account's password or having trouble logging into your Account? Don't worry, we'll help you to get back your account. Enter your email address and we'll send you a recovery link to reset your password. If you are experiencing problems resetting your password contact us