Answers for "attached the name of the folder to the file in linux"

0

attached the name of the folder to the file in linux

filelist=`ls *.pdf`
for i in $filelist
do
    mv $i `echo $i|cut -d "-" -f 2`
done
Posted by: Guest on May-17-2021
0

attached the name of the folder to the file in linux

filelist=`ls *.pdf`
for i in $filelist
do
    mv $i `echo $i|cut -d "-" -f 2`
done
Posted by: Guest on May-06-2021

Code answers related to "attached the name of the folder to the file in linux"

Code answers related to "Shell/Bash"

Browse Popular Code Answers by Language