#!/usr/bin/env sh entries() { ls -r gemlog/???-*.gmi | while read entry; do updated="$(date -uIminutes -d"@$(stat --printf='%W' $entry)")" cat < $(head -n1 $entry | cut -c3-) gemini://lyk.so/$entry $(echo $updated) EOF done } cat < lyk.so gemini://lyk.so/ Lykso atom@lyk.so $(date -u -Iminutes) $(entries) EOF