Skip to content

Instantly share code, notes, and snippets.

@kevin39
Last active May 18, 2017 12:22
Show Gist options
  • Save kevin39/48fc012325a297f9f2f3d116d8f59f6a to your computer and use it in GitHub Desktop.
Save kevin39/48fc012325a297f9f2f3d116d8f59f6a to your computer and use it in GitHub Desktop.
Recursive find and replace
grep -rl "OLD STRING" /etc/iscsi/nodes/ | xargs sed -i "s/OLD STRING/NEW STRING/g"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment