Rename a bunch of files

Photoshop mangles file names when you run batch saves on them, so I’ve had to rename a bunch of files after processing. Here’s what I do from the shell prompt to rename a bunch of files in a PictsFolder.

Create a file called

cd /Users/gmiller/Desktop/PictsFolder
mv 1.png a.png
mv 2.png b.png

chmod it to be executable. I use chmod 777 because I’m lazy. Then run it from the command line.

jscarry$ /Users/gmiller/Files/
Be sure to escape special characters like spaces in your file names.

e.g. File\ Name\ With\ Spaces.png

Leave a Reply

You must be logged in to post a comment.

Well Golly

Atheism Plus

Buy from Amazon