Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save mattrobertsky/0c59a9b09dbdb47f836b15fcc90a1ffd to your computer and use it in GitHub Desktop.
Save mattrobertsky/0c59a9b09dbdb47f836b15fcc90a1ffd to your computer and use it in GitHub Desktop.
linux find replace
grep -rl matchstring somedir/ | xargs sed -i 's/string1/string2/g'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment