#! /bin/sh

tgt=$1
out="${tgt}-thumb.html"
find $1 -iname "*.JPG" | awk '{print "<a href=\"" $1 "\"><img src=\"thumb/" $1 "\"></a>"}' > $out

