Bulk Terminal Rename for many files and folders.

SIDENOTE: This is a common rename tool. Commonly I see it called as simply “rename”. In cygwin its called “prename” (other distros also call it prename). However you can also see it called “perl rename” or “rename.pl”. In some distros there is a tool called rename (from the util-linux package), which works differently (it doesnt have the -n preview feature, which sucks), here is a website that shows a simple example of the old rename tool (util-linux) and prename/rename.pl (which we are talking about in this article)http://linux.icydog.net/rename.php

DOWNLOAD:

http://search.cpan.org/~pederst/rename/

Just click on Download and go to the bin folder in the tar.gz to get the latest rename.pl file. Currently its 1.9. Works with any Perl. copy the contents into your own rename.pl file if you want, just dont forget to make the file executable. (This depends on having PERL installed on the system)

Here is a link for 1.9 version of rename: http://cpansearch.perl.org/src/PEDERST/rename-1.9/bin/rename.PL

 

HOW TO USE:

http://tips.webdesign10.com/how-to-bulk-rename-files-in-linux-in-the-terminal

 

COPY OF RENAME.pl VERSION 1.9

straight from http://cpansearch.perl.org/src/PEDERST/rename-1.9/bin/rename.PL

 

Leave a Reply

Your email address will not be published. Required fields are marked *