Created
May 17, 2021 03:12
-
-
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.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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