소스 검색

Add find-replace.sh script.

Lauri Ojansivu 5 년 전
부모
커밋
bda49ed609
1개의 변경된 파일5개의 추가작업 그리고 0개의 파일을 삭제
  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'