Add find-replace.sh script.

This commit is contained in:
Lauri Ojansivu 2020-06-17 20:28:22 +03:00
parent 39be9aa58d
commit bda49ed609

5
find-replace.sh Executable file
View file

@ -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'