Marco Pracucci

Rename multiple files on Mac

by Marco Pracucci Comments

I love semplicity and I love tools that do one job, yet well. Today I had to rename multiple files on Mac, and rename saved me a lot of time.

How it works

brew install rename
rename -s "from" "to" *.*

Ie. to replace “Filter” with “DataFilter” on all Filter*.php files inside a directory, you’ve just to run:

rename -s "Filter" "DataFilter" Filter*.php

RSS Feed

To get a notification each time a new article gets published, type the following command on your Slack: /feed subscribe