------------------------------------------------------------ #!/bin/bash # 2020-12-05 ~ew # License: CC0-1.0 unset LANG set -euo pipefail echo "# TAG Index" find ./20* -type f -name \*.gmi | LANG='' sort -r | while read file do grep '^=> /tag-index.gmi tags:' ${file} | sed -e 's/^.*tags:[ ]*//' || true done | tr ' ' '\n' | grep -v '^