Sfoglia il codice sorgente

Add find-replace.sh script.

Lauri Ojansivu 5 anni fa
parent
commit
bda49ed609
1 ha cambiato i file con 5 aggiunte e 0 eliminazioni
  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'