nunosempere.com/blog/_werc/traverse.sh
2023-03-10 19:07:21 +00:00

16 lines
254 B
Bash

year=2023
echo "## In $year..."
echo
for dir in */*/*
do
index_path="$(pwd)/$dir/index.md"
title="$(cat $index_path | head -n 1)"
url="https://nunosempere.com/$year/$dir"
# echo $dir
# echo $index_path
# echo $title
echo "- [$title]($url)"
done