Skip to content

Instantly share code, notes, and snippets.

@SeanPlusPlus
Created January 12, 2012 18:43
Show Gist options
  • Save SeanPlusPlus/1602303 to your computer and use it in GitHub Desktop.
Save SeanPlusPlus/1602303 to your computer and use it in GitHub Desktop.
Recursively replace string matching regex
grep -ilr "foo" * | xargs -i@ sed -i 's/foo/bar/' @
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment