Skip to content

Instantly share code, notes, and snippets.

@doyle
Created October 21, 2016 19:56
Show Gist options
  • Save doyle/8ad2bdfbc79f4835a30bcba814d20c16 to your computer and use it in GitHub Desktop.
Save doyle/8ad2bdfbc79f4835a30bcba814d20c16 to your computer and use it in GitHub Desktop.
Find and replaces all instances in a directory
find . -type f -exec sed -i '' -e 's/foo/bar/g' {} \;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment