mrename – A tool for easy and automatic renaming of many files
Install mrename in ubuntu
sudo aptitude install mrename
This will complete the installation
mrename pattern prefix [option]
If you have a directory with two jpeg images prof.jpg and forp.jpg and you want to add them a prefix like item0, item1 etc.. (that is item0prof.jpg, item1forp.jpg etc..) do this:
to copy each matching file into another with the new name
mrename *.jpg item -c
to rename each file without keeping a copy with the previous name
mrename *.jpg item -m
There are only the following three options.
-c The option -c will copy each file with the new filename.
-m The option -m will move each file in the new filename.
-h Display help.