Skip to content

Instantly share code, notes, and snippets.

@danshearmur
Created April 14, 2014 12:45
Show Gist options
  • Save danshearmur/10644630 to your computer and use it in GitHub Desktop.
Save danshearmur/10644630 to your computer and use it in GitHub Desktop.
git-sed () {
git grep -l "$1" | xargs sed -i "" "s/$1/$2/g"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment