aboutsummaryrefslogtreecommitdiff
path: root/recursive-replace-string
diff options
context:
space:
mode:
Diffstat (limited to 'recursive-replace-string')
-rwxr-xr-xrecursive-replace-string8
1 files changed, 8 insertions, 0 deletions
diff --git a/recursive-replace-string b/recursive-replace-string
new file mode 100755
index 0000000..8d6d888
--- /dev/null
+++ b/recursive-replace-string
@@ -0,0 +1,8 @@
+#!/bin/sh
+
+FIND="<hr\/>"
+REPL="<hr>"
+
+find . -name "*.html" -exec \
+ sed -i 's/$FIND/$REPL/g' {} +
+