Created
April 1, 2011 20:55
-
-
Save nathankleyn/898839 to your computer and use it in GitHub Desktop.
Recursive find and replace with find, sed and xargs.
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
find . -type f -print0 | xargs -0 sed -i 's/fromregex/toregex/g' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment