Skip to content

Instantly share code, notes, and snippets.

@abruzzihraig
Created June 2, 2015 06:31
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save abruzzihraig/e29fa4eda48326a76746 to your computer and use it in GitHub Desktop.
Save abruzzihraig/e29fa4eda48326a76746 to your computer and use it in GitHub Desktop.
Shell script for replace words with sed
alias rep='function _replace(){ eval "find . -type f -name \"*.$1\" -exec sed -i \"\" s/$2/$3/g {} +";};_replace'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment