Created
December 3, 2011 00:59
-
-
Save btaitelb/1425578 to your computer and use it in GitHub Desktop.
git-sed
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
sed -e 's/search for/replace/g' -i .orig $(git grep --name-only 'search for' | xargs) |
Thanks, this is much better and I've updated the gist.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Instead of "git grep "foo" | cut -d ':' -f 1 | uniq", you can just use "git grep --name-only "foo""