diff options
| author | Paul Buetow (pluto.buetow.org) <paul@buetow.org> | 2013-09-07 15:26:18 +0200 |
|---|---|---|
| committer | Paul Buetow (pluto.buetow.org) <paul@buetow.org> | 2013-09-07 15:26:18 +0200 |
| commit | 48dbcd72995845b1e9d6fb69bdccf196c15234ef (patch) | |
| tree | 35544a1337ed6a4d82e1cf28c525a75094ccf893 | |
| parent | f7e49d8f7e7d4b68e44fe8b29baa57921893bf96 (diff) | |
enhance replace.sh
| -rwxr-xr-x | scripts/mreplace.sh | 3 | ||||
| -rwxr-xr-x | scripts/replace.sh | 3 |
2 files changed, 1 insertions, 5 deletions
diff --git a/scripts/mreplace.sh b/scripts/mreplace.sh index 1ef5cc4..32f2c17 100755 --- a/scripts/mreplace.sh +++ b/scripts/mreplace.sh @@ -5,8 +5,7 @@ do for i in `find . -name "*.$j"` do echo $i - sed "s/$1/$2/g" $i > temp - mv -f temp $i + sed -i "s/$1/$2/g" $i > temp done done diff --git a/scripts/replace.sh b/scripts/replace.sh deleted file mode 100755 index 3520624..0000000 --- a/scripts/replace.sh +++ /dev/null @@ -1,3 +0,0 @@ -#!/bin/sh - -exec sed -i "s/$2/$3/g" $1 |
