Created
July 26, 2016 15:52
-
-
Save lrhache/92d8031e8df7f6133257869d775686aa to your computer and use it in GitHub Desktop.
find string in files recursively without touching each files
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 -rl "oldstring" . | LANG=C LC_ALL=C xargs sed -i '' -e "s/oldstring/newstring/g" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment