Skip to content

Instantly share code, notes, and snippets.

@weavenet
Created March 26, 2014 16:20
Show Gist options
  • Save weavenet/9787119 to your computer and use it in GitHub Desktop.
Save weavenet/9787119 to your computer and use it in GitHub Desktop.
Find and replace strings across files recursively in a directory on OS X.
find . -type f -name '*.txt' -exec sed -i '' s/123/321/ {} +
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment