#!/bin/sh temp=/tmp/tempFiles$$ echo Creating page for Small and Large Buttons... rm index.html >/dev/null 2>&1 cp ../htmlBeginning index.html echo "

Small Buttons (these files are in the bigButtons directory)

" >>index.html echo "

" >>index.html for file in button*.gif do if egrep "^$file\$" $temp >/dev/null 2>&1 then : else echo "

" >>index.html echo ">index.html echo " ALT=\"\"> bigButtons/$file" >>index.html echo $file >>$temp fi done echo "

Big Buttons

" >>index.html echo "

" >>index.html for file in *BigButton.gif do if egrep "^$file\$" $temp >/dev/null 2>&1 then : else echo "

" >>index.html echo ">index.html echo " ALT=\"\"> bigButtons/$file" >>index.html echo $file >>$temp fi done cat ../htmlEnding >>index.html chmod 666 index.html rm $temp echo Done.