Skip to content

Instantly share code, notes, and snippets.

@mamachanko
Created April 14, 2014 13:05
Show Gist options
  • Save mamachanko/10646067 to your computer and use it in GitHub Desktop.
Save mamachanko/10646067 to your computer and use it in GitHub Desktop.
Subsitute in files containing string
sed -i -e 's/<TO_BE_REPLACED>/<NEW_STRING>/' `grep -lr --include=\*.py <SEARCH_STRING> .`
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment