mrename – A tool for easy and automatic renaming of many files

Sponsored Link
Mass Rename is a simple pair of shell scripts which make it easier to move, rename, or copy multiple files at once. It is intended mainly as an automatic and simple way to rename multiple files with a customizable prefix and a progressive number. It is also possible to modify the rename format simply by editing one of the scripts. It is easy, complete, and efficient, and was written only in sh code.

Install mrename in ubuntu

sudo aptitude install mrename

This will complete the installation

Using mrename

Syntax

mrename pattern prefix [option]

mrename Examples

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:

cd /path/to/the/images

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

mrename Options

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.

Sponsored Link

You may also like...

Leave a Reply

Your email address will not be published.