Posts

Showing posts with the label Rename

Batch rename files

When renaming a number of files at the same time, it is more convenient to use a GUI for the job. Métamorphose is one such program that does the job brillianty, and freely. There are others Flash Renamer was another (not free) great program. However, sometimes it is fun to do the same stuff using command-line. Below are a couple of ways to do batch renaming.

Batch Renaming

If you need to rename a bunch of files from, for example,|add.png| to|add_32.png|, just do the following: for i in *; do j=`echo $i | cut -d . -f 1`; j=$j"_32.png"; mv $i $j; done