Skip to content

Instantly share code, notes, and snippets.

@dickbrouwer
Created September 5, 2012 17:56
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 dickbrouwer/3641284 to your computer and use it in GitHub Desktop.
Save dickbrouwer/3641284 to your computer and use it in GitHub Desktop.
OSX sed replace a list of files
find . -type f -name '*.py' -exec sed -i "" "s/str1/str2/g" {} +
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment