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

Lines and Bars (these files are in the bars subdirectory)

" >>index.html echo "

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

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