PDA

View Full Version : [SOLVED] Batch renaming files



willzhigaylo
December 26th, 2013, 11:20 PM
For me to be able to upload pics to eBay I have to change all the images from .JPG (upercase) to .jpg (lowercase). Becuase I list alot on eBay, I need to do this often, is there any way I can do this faster? Any help is apprectiated.

mikewhatever
December 26th, 2013, 11:59 PM
Here you go http://stackoverflow.com/a/8167105

sisco311
December 27th, 2013, 12:26 AM
You can use one of the GUI tools like:

gprename
purrr
pyrenamer
gwenrename
thunar (file manager)
gnome-commander (file manager)
krename

Or if you want to do it in the CLI, then in Ubuntu, you can try the Perl based rename utility:


cd path/to/dir
prename --no-act 's/\.JPG$/.jpg/' *.JPG


If you are looking for a more portable code or want to rename files recursively, then check out BashFAQ 030 (link in my signature).

willzhigaylo
December 27th, 2013, 12:50 AM
Thanks that helped!