for f in *.md ; do yq "{\"file\":\"$f\", \"headers\":.}" < <(sed -n '2,/^---$/ {/^---$/d; p}' $f ) ; done
Or…
for f in *.md ; do sed -n '2,/^---$/ {/^---$/d; p}' "${f}" | yq "{\"file\":\"$f\", \"headers\":.}" done
There may be more optimal ways to organize them, but this was the first bit I liked. Need to learn more jq query syntax to be able to use it to search.
=> #meta
created: 2022-11-04
updated: 2022-11-05 01:39:06
(re)generated: 2025-01-11
text/gemini
This content has been proxied by September (ba2dc).