Skip to content

Instantly share code, notes, and snippets.

@antonmry
Created February 3, 2015 09:37
Show Gist options
  • Save antonmry/b07fcf2e5339ad38a463 to your computer and use it in GitHub Desktop.
Save antonmry/b07fcf2e5339ad38a463 to your computer and use it in GitHub Desktop.
Replace a string recursively
grep -ilr '10.0.2.15' * | xargs -i@ sed -i 's/10.0.2.15/ocsg/g' @
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment