Skip to content

Instantly share code, notes, and snippets.

@mikecrittenden
Last active Sep 28, 2020
Embed
What would you like to do?
Mass renaming files on macOS using the "rename" command
# Install it with Homebrew.
brew install rename
# Replace "oldstring" with "newstring" with files in the current directory.
rename -s oldstring newstring *
# Do the same thing, but recursively.
rename -s oldstring newstring **/*
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment