💾 Archived View for thatit.be › 2022-11-04-17-12-57.gmi captured on 2024-05-26 at 14:51:38. Gemini links have been rewritten to link to archived content
⬅️ Previous capture (2024-05-10)
-=-=-=-=-=-=-
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.
updated: 2022-11-05 01:39:06
generated: 2024-05-25