Created
February 1, 2012 22:31
-
-
Save jesstess/1719886 to your computer and use it in GitHub Desktop.
Change all instances of foo to bar in this directory, excluding files in .git or its subdirectories
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 . -not \( -name .git -prune \) -type f -print0 | xargs -0 sed -i 's/foo/bar/g' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment