0

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?

1 Answers1

0

You can do this with a bash loop like the following

#!/bin/bash

for file in ./*.rpt
do
    mv "$file" ./NewFileName
done
muru
  • 72,889