#! /bin/sh

sedcmd="s/${1}\///"

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

