Skip to content

Instantly share code, notes, and snippets.

@ejhayes
Created October 7, 2013 23:53
Show Gist options
  • Save ejhayes/6877090 to your computer and use it in GitHub Desktop.
Save ejhayes/6877090 to your computer and use it in GitHub Desktop.
Perform string replacement on a file using regex and sed. Boo yah
sed -i "s/THING_TO_REPLACE/REPLACE_WITH_THIS/g" path/to/file
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment