#!/bin/sh cat ./html_header for image_dir in $(find -type d | egrep -v "^\.\$" | sort -r); do date=$(echo "$image_dir" | xargs basename) echo "

$date

" echo "" done cat ./html_footer