Skip to content

Instantly share code, notes, and snippets.

@sayantanHack
Created May 17, 2021 03:12
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save sayantanHack/2dadcc3790b686d6229db2540e266345 to your computer and use it in GitHub Desktop.
Save sayantanHack/2dadcc3790b686d6229db2540e266345 to your computer and use it in GitHub Desktop.
This is a Folder and file generator .The folder & file name will be taken from a txt file.
file="ip.txt"
i=1
#reading from file each lines
while read line; do
#ft=".docx"
nm=${line//./_}
mkdir $nm;
sleep 0.3
cd $nm;
touch $nm;
sleep 0.3
cd ..;
i=$((i+1))
done < $file
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment