aboutsummaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/tags8
1 files changed, 8 insertions, 0 deletions
diff --git a/scripts/tags b/scripts/tags
new file mode 100755
index 0000000..3b9272c
--- /dev/null
+++ b/scripts/tags
@@ -0,0 +1,8 @@
+#!/bin/sh
+
+grep -Proh \
+ "^\[meta\]:\s+<tags>\s+\(\K(.+)(?=\)$)" ../posts |\
+ sed "s/,\s*/\n/g" |\
+ sort |\
+ uniq
+