Old Alfred Zettel command for ztags

cd ~/Library/Mobile\ Documents/9CR7T2DMDG\~com\~ngocluu\~onewriter/Documents/
egrep -ohs '^tags:.*$' -- * | egrep -ohs '#[A-Za-z0-9_\-]+' | sort | uniq -c | sort -t# -k2 > TAGS\ COMPENDIUM.md

Part of stuff I have to do when I’m changing the Zettelkasten directory in Alfred 202006021357


uid: 202006012055 tags: #notetaking


Date
February 22, 2023