How to rename files in Mac OSX?
$ cd /into/the/folder $ rename 's/\.js$/.js.bak/' * # change all files with .js to .js.bak $ rename 's/\.js.bak$/.js/' * # change all files with .js.bak to .js