More file renaming fun

One tool that made my life easier when I recently discovered it: ‘rename’. It allows you to specify a sed-like command line to easily search/replace part of file names like this:

rename s/"SEARCH"/"REPLACE"/g *.txt

Of course it also works for files in subdirs if you use none globbing like this

rename s/"SEARCH"/"REPLACE"/g */*.txt