Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SHELL

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
 
PREVIOUS NEXT
Tagged: #bash #folders #list
ADD COMMENT
Topic
Name
6+7 =