Created
June 7, 2017 16:24
-
-
Save GingerBear/c17175348b03126af7c825a7ba66a54f to your computer and use it in GitHub Desktop.
rename xcode project name
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
# change xcode project name from "BadNamedProject" to "GoodNamedProject" | |
# change code | |
grep -r 'BadNamedProject' -l --null . | xargs -0 sed -i '' 's#BadNamedProject#GoodNamedProject#g' | |
# change filename | |
find . -depth -name "*BadNamedProject*" -execdir sh -c 'mv {} $(echo {} | sed "s/BadNamedProject/GoodNamedProject/")' \; | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment