Created
November 20, 2020 19:19
-
-
Save serafdev/e867b387a195e20265b23848f2f7a2c3 to your computer and use it in GitHub Desktop.
Replace oldString with newString in all files in folder and nested folders
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
#!/bin/sh | |
# Replace oldString with newString in all files in folder and nested folders | |
grep -rl "oldString" /your/path | xargs sed -i '' -e "s/oldString/newString/g" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment