Created
April 3, 2019 00:04
-
-
Save umiphos/54658fafa9d70d9f58363a5bb96fe208 to your computer and use it in GitHub Desktop.
Used when we need to change a variable name with sh in a LOT of files at once
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
#!/bin/sh | |
grep -rl --exclude-dir=.git $1 |xargs sed -i 's/'$1'/'$2'/g' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment