
Originally Posted by
DoctorDemento
I need some advise for a shell command or script to bulk rename filenames. My digital camera names files with the JPG extension capitalized, which creates big problems while coding web pages. So is there a simple way to rename all of these files with a lowercase jpg extension?
you can use the Python script here
eg usage
Code:
./filerenamer.py -p ".JPG" -e ".jpg" -l "*.JPG" #list only
./filerenamer.py -p ".JPG" -e ".jpg" "*.JPG" # remove -l to commit
or if you want to do it by hand
Code:
for files in *JPG
do
mv "$files" "${files/JPG/jpg}"
done
Bookmarks