#! /bin/csh -fe # makes an HTML page "index.html" with pointers to all files # "index.html" and "*-sampler.html" under the current directory. set temp = ".temp.html" find ./*/. \( -name 'index.html' -o -name '*sampler.html' \) -print | sort > .pages wc -l .pages if ( -z .pages ) then echo "no index pages found" /bin/rm .pages exit 1 endif cat < ${temp} `pwd`

Images in `pwd`

EOF
foreach pag ( `cat .pages` )
  echo '  

'"${pag}"'

' >> ${temp} end cat <> ${temp}
Generated on `date` EOF mv -b -V numbered ${temp} index.html /bin/rm -f .pages