Search
 
SCRIPT & CODE EXAMPLE
 

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
Comment

PREVIOUS NEXT
Code Example
Shell :: delete a pushed commit 
Shell :: download all bitbucket repositories 
Shell :: vim sudo trick 
Shell :: yacc install in kali linux 
Shell :: sudo: apt: command not found 
Shell :: how to clone ubuntu 
Shell :: fatal: failed to install gitlab-runner: service gitlab-runner already exists 
Shell :: vs code linux cache 
Shell :: create a new repository on the command line on GitHub 
Shell :: windows shell 
Shell :: pytest debug tests 
Shell :: ubuntu wifi drivers 
Shell :: viewing ubuntu desktop from windows in the same network 
Shell :: add package in pubspec.yaml using command prompt in flutter 
Shell :: cli50 
Shell :: where is sudo in linux 
Shell :: git go back to head after checkout commit 
Shell :: docker tag image 
Shell :: how to install helm 
Shell :: api to access gitlab varaible 
Shell :: jq unencode string 
Shell :: how to speed up internet connection ubuntu 20 
Shell :: bash argument parsing 
Shell :: rman commands 
Shell :: brew Cannot install on Intel processor in ARM default prefix (/opt/homebrew)! 
Shell :: sudo: gem: command not found 
Shell :: how to make migrations in models in django 
Shell :: how to use git stash in current branch 
Shell :: Update /etc/apt/sources.list file 
Shell :: Check path file exist 
ADD CONTENT
Topic
Content
Source link
Name
2+4 =