Skip to content

Instantly share code, notes, and snippets.

@burnsra
Last active March 31, 2016 18:30
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 burnsra/0a7b5ab22967e2d521db8a07280c917c to your computer and use it in GitHub Desktop.
Save burnsra/0a7b5ab22967e2d521db8a07280c917c to your computer and use it in GitHub Desktop.
Xcode Project Rename
find $(pwd) ! -path . -type d -name "$1*" -print0 | xargs -0 rename -S "$1" "$2"
find $(pwd) ! -path . -type f -name "$1*" -print0 | xargs -0 rename -S "$1" "$2"
ack --literal --files-with-matches "$1" --print0 | xargs -0 sed -i "" "s/$1/$2/g"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment