Skip to content

Instantly share code, notes, and snippets.

@willwright82
Created January 31, 2020 15:03
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 willwright82/7f6f5cf1089ffc4bf8e73986aa696570 to your computer and use it in GitHub Desktop.
Save willwright82/7f6f5cf1089ffc4bf8e73986aa696570 to your computer and use it in GitHub Desktop.
Search and Replace using AG — The Silver Surfer
ag -l "search string" | xargs sed -i '' -e 's/from/to/g'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment