Created
November 26, 2018 10:53
-
-
Save thomasuebel/1e64fbb43c486b1b255f496bb8ff386f to your computer and use it in GitHub Desktop.
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
# Find occurences of TEST in *.js files, replacing the word TEST with BOB | |
for line in $(grep "TEST" . -THIRs --include=\*.js | awk '{print $1}'); do sed -i 's/TEST/BOB/' $line; done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment