summaryrefslogtreecommitdiff
path: root/bin/clean_html
diff options
context:
space:
mode:
authorJohn J. Camilleri <john@digitalgrammars.com>2018-10-31 15:47:12 +0100
committerJohn J. Camilleri <john@digitalgrammars.com>2018-10-31 15:47:12 +0100
commit7867c8c8287c4430d6fd5c8aed2e581ca4a9186d (patch)
treeaabea5a4f4a1429cc84d419f7863ed286b280876 /bin/clean_html
parent632cd1e522f9f8b626b3acc661799cc81d29c728 (diff)
pre and post HTML templates for all txt2tags conversions
Remaining: cleaning of t2t files (remove unnecessary options)
Diffstat (limited to 'bin/clean_html')
-rwxr-xr-xbin/clean_html8
1 files changed, 8 insertions, 0 deletions
diff --git a/bin/clean_html b/bin/clean_html
new file mode 100755
index 000000000..e2bf0e799
--- /dev/null
+++ b/bin/clean_html
@@ -0,0 +1,8 @@
+#!/bin/bash
+
+### This script finds all .t2t (txt2tags) files and deletes the corresponding html file
+
+find . -name '*.t2t' | while read t2t ; do
+ html="${t2t%.t2t}.html"
+ rm -f "$html"
+done