Rocking the blogosphere
Apple Online Store

Bulk renaming of files using regular expressions

This nice little Perl script is the most logical way that I’ve seen to rename a bunch of files. Well for UNIX/Perl geeks at least. You use nice little Perlish regular expression replacements to do the renaming. E.g.:

ren-regexp 's/JPG/jpg/' *

http://www.michael-forman.com/perl/ren-regexp.html

As pointed out by Jud, here’s another tool, which offers some additional features:

https://moin.conectiva.com.br/ReMv

Del.icio.us Digg Reddit Technorati

Possibly related posts

Comments

  1. Jud
    July 25th, 2005 | 11:52 am

    The python version “remv’ is my personal favorite. It has a few more features (like recursive renaming) that I find to be very helpful. https://moin.conectiva.com.br/ReMv

Leave a reply

Apple Online Store
Apple Online Store