Created
May 22, 2018 20:32
-
-
Save mattrobertsky/0c59a9b09dbdb47f836b15fcc90a1ffd to your computer and use it in GitHub Desktop.
linux find replace
This file contains hidden or 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 -rl matchstring somedir/ | xargs sed -i 's/string1/string2/g' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment