diff options
Diffstat (limited to 'tools/scripts/replace.sh')
-rw-r--r-- | tools/scripts/replace.sh | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/tools/scripts/replace.sh b/tools/scripts/replace.sh new file mode 100644 index 0000000..8e393f0 --- /dev/null +++ b/tools/scripts/replace.sh @@ -0,0 +1,7 @@ +#!/bin/sh + +folder=$1 +oldstring=$2 +newstring=$3 + +grep -rl $oldstring $folder | xargs sed -i s@$oldstring@$newstring@g |