Skip to content

Instantly share code, notes, and snippets.

@omgmog
Created April 19, 2012 10:01
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 omgmog/2420059 to your computer and use it in GitHub Desktop.
Save omgmog/2420059 to your computer and use it in GitHub Desktop.
Bulk recursive find/replace in terminal with perl/grep
perl -pi -w -e 's/<search string>/<replace string>/g;' `grep -ril "<search string>" *`
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment