Created
March 3, 2016 08:46
-
-
Save KarlPurk/7105b40e63e3e721a313 to your computer and use it in GitHub Desktop.
Find and replace in project with `ag` and `sed`
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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