diff options
Diffstat (limited to 'find-replace.sh')
-rwxr-xr-x | find-replace.sh | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/find-replace.sh b/find-replace.sh new file mode 100755 index 00000000..522affab --- /dev/null +++ b/find-replace.sh @@ -0,0 +1,5 @@ + +# Recursive find/replace. +# Syntax: ./find-replace.sh searchtext replacetext + +egrep -lRZ '$1' . | xargs -0 -l sed -i -e 's/$1/$2/g' |