Created
April 29, 2013 17:49
-
-
Save johnrengelman/5483366 to your computer and use it in GitHub Desktop.
Find all files that match a pattern and rename them to a new naming convention.
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 . -name "Service*.json" | awk '{orig=$1;mod=$1;sub(/Service/,"",mod);sub(/.json/,"Service.json");print("git mv "orig" "mod)}' | /bin/sh |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment