Created
April 24, 2014 18:06
-
-
Save jamiehs/11263917 to your computer and use it in GitHub Desktop.
Recursively loop over all files, then use simple string replacements.
This file contains 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
find . -type f -name "file-pattern*" -exec sh -c 'echo mv "$0" "${0/find/replace}"' '{}' \; | |
#Remove the echo when you're sure this does what you want. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment