Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save JackNUMBER/8255096e16261d5b3b694dfa61769385 to your computer and use it in GitHub Desktop.
Save JackNUMBER/8255096e16261d5b3b694dfa61769385 to your computer and use it in GitHub Desktop.
git grep + sed replace
git grep -l 'original_text' | xargs sed -i 's/original_text/new_text/g'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment