Skip to content

Instantly share code, notes, and snippets.

@crittermike
Last active September 28, 2020 02:51
Show Gist options
  • Save crittermike/d260090cca726d7bf13374c6307e0bb1 to your computer and use it in GitHub Desktop.
Save crittermike/d260090cca726d7bf13374c6307e0bb1 to your computer and use it in GitHub Desktop.
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