Monday, May 16, 2011

Bulk renaming in Debian Linux

The simplest way to this is using a perl script called rename (debian linux only)

I used only substitute strings, but it fully supports filenames which is really cool :)

rename -v 's/oldString/newString/' *.htm

Two sources for this:
http://tips.webdesign10.com/how-to-bulk-rename-files-in-linux-in-the-terminal
http://www.troubleshooters.com/codecorn/littperl/perlreg.htm