summaryrefslogtreecommitdiffstats
path: root/find-replace.sh
diff options
context:
space:
mode:
Diffstat (limited to 'find-replace.sh')
-rwxr-xr-xfind-replace.sh5
1 files changed, 5 insertions, 0 deletions
diff --git a/find-replace.sh b/find-replace.sh
new file mode 100755
index 00000000..522affab
--- /dev/null
+++ b/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'