Skip to content

Instantly share code, notes, and snippets.

@GingerBear
Created June 7, 2017 16:24
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save GingerBear/c17175348b03126af7c825a7ba66a54f to your computer and use it in GitHub Desktop.
Save GingerBear/c17175348b03126af7c825a7ba66a54f to your computer and use it in GitHub Desktop.
rename xcode project name
# 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