Last active
May 18, 2017 12:22
-
-
Save kevin39/48fc012325a297f9f2f3d116d8f59f6a to your computer and use it in GitHub Desktop.
Recursive find and replace
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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