attached the name of the folder to the file in linux code example
Example 1: 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
Example 2: 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