Archive for January, 2008

Linux/OSX mass file renaming

A handy command-line of text to mass rename files (in this case, change file extensions) that works in Linux and OSX:
ls -d *.cbz | sed ’s/\(.*\).cbz$/mv -v “&” “\1.cbr”/’ | sh
In this example, all .cbz files are renamed to .cbr (as I noticed some comic book archives I had were wrong).
An even more concise version […]