Last active
August 29, 2015 13:57
-
-
Save bad-mushroom/9769757 to your computer and use it in GitHub Desktop.
Pipe results from grep to sed for search/replace
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
grep -lr <pattern> ./<dir> | xargs sed -i '' 's/<search-for>/<replace-with>/g' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment