trying to rename some bulk files in a folder
mv ~/folder/subfolder/filename.rpt ~/folder/subfolder/filename_sunset.rpt
is there any command, to do this to all together?
You can do this with a bash loop like the following
#!/bin/bash
for file in ./*.rpt
do
mv "$file" ./NewFileName
done
ls
, b) quote your variables. – muru Feb 01 '17 at 14:27