Created
August 6, 2012 03:24
-
-
Save nigelbabu/3269611 to your computer and use it in GitHub Desktop.
Replace a word in files matched with a grep
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 'myfolder' * | xargs -I{} perl -pi -e 's/foo/bar/' {} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment