#!/bin/sh cat << EOF davidovski https://davidovski.xyz davidovski's site EOF for entry in entries/*.html; do title="$(grep '^# ' $entry)" title=${title#\# } printf "\n" printf "%s\n" "${title}" printf "%s\n" "http://davidovski.xyz/$entry" printf "%s\n" "$(git log --pretty=format:'%cd' --follow -- "$entry" | tail -n 1)" printf "\n" done cat << EOF EOF