Skip to content

Instantly share code, notes, and snippets.

@KarlPurk
Created March 3, 2016 08:46
Show Gist options
  • Save KarlPurk/7105b40e63e3e721a313 to your computer and use it in GitHub Desktop.
Save KarlPurk/7105b40e63e3e721a313 to your computer and use it in GitHub Desktop.
Find and replace in project with `ag` and `sed`
ag $needle -l --print0 | xargs -0 -n 1 sed -i "" "s/$needle/$replacement/g"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment