-
-
Save ttamnedlog/a5edb6ddc4e7adcefc295a0256941870 to your computer and use it in GitHub Desktop.
bulk search and replace with the silver searcher, awk, sed and xargs
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 $1 --files-with-matches | xargs -I {} sed -i '.back' -e "s/$1/$2/g" {} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment