Tuesday, February 17, 2009

bulk rename utility

There is a bulk rename utility which is installed by default in many distributions calls 'rename'. It expects a perl regular expression to describe the substitution.

You can use this to, say, change the file extension of several files:

rename 's/\.htm$/.html/' *.html

It's written in perl and was originally written by Larry Wall.

No comments: