Explorar o código

Add find-replace.sh script.

Lauri Ojansivu %!s(int64=5) %!d(string=hai) anos
pai
achega
bda49ed609
Modificáronse 1 ficheiros con 5 adicións e 0 borrados
  1. 5 0
      find-replace.sh

+ 5 - 0
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'