Skip to content

Instantly share code, notes, and snippets.

@nathankleyn
Created April 1, 2011 20:55
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 nathankleyn/898839 to your computer and use it in GitHub Desktop.
Save nathankleyn/898839 to your computer and use it in GitHub Desktop.
Recursive find and replace with find, sed and xargs.
find . -type f -print0 | xargs -0 sed -i 's/fromregex/toregex/g'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment