summaryrefslogtreecommitdiffstats
path: root/find-replace.sh
diff options
context:
space:
mode:
authorLauri Ojansivu <x@xet7.org>2020-06-17 20:28:22 +0300
committerLauri Ojansivu <x@xet7.org>2020-06-17 20:28:22 +0300
commitbda49ed60947e0438206b2f55119f5c5c132c734 (patch)
tree0f29d473dc850228178584e3ec85775f0319a320 /find-replace.sh
parent39be9aa58da1ddda16b41e92b12f118169049fed (diff)
downloadwekan-bda49ed60947e0438206b2f55119f5c5c132c734.tar.gz
wekan-bda49ed60947e0438206b2f55119f5c5c132c734.tar.bz2
wekan-bda49ed60947e0438206b2f55119f5c5c132c734.zip
Add find-replace.sh script.
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'