Last active
September 28, 2020 02:51
-
-
Save crittermike/d260090cca726d7bf13374c6307e0bb1 to your computer and use it in GitHub Desktop.
Mass renaming files on macOS using the "rename" command
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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