Last active
November 8, 2016 01:54
-
-
Save zhangchenchen/3e7c510907c824a067965fe993d6f45f to your computer and use it in GitHub Desktop.
substitute string in all files in linux
This file contains hidden or 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
| sed -i "s/oldString/newString/g" `grep oldString -rl /etc` | |
| # -i substitute in place |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment