source code for html website at https://zachdecook.com
Diffstat (limited to 'devo/script.sh')
-rwxr-xr-xdevo/script.sh9
1 files changed, 9 insertions, 0 deletions
diff --git a/devo/script.sh b/devo/script.sh
new file mode 100755
index 0000000..2511d24
--- /dev/null
+++ b/devo/script.sh
@@ -0,0 +1,9 @@
+#!/bin/sh
+# Split file by header lines
+awk '($1 == "#"){of = $2 ".md"}{print > of}' devo.md
+
+ls 2*.md | xargs -I{} sh -c 'cat common.md {} |python3 -m markdown -f {}.html'
+# perl-rename
+rename -f 's/.md.html/.html/' *.md.html
+# util-linux rename
+# rename .md.html .html *.md.html