Browse Source

Add find-replace.sh script.

Lauri Ojansivu 5 năm trước cách đây
mục cha
commit
bda49ed609
1 tập tin đã thay đổi với 5 bổ sung0 xóa
  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'