#!/bin/csh

cd $1
echo "<html>" > index.html

foreach f (*.txt) 
echo "<a href=$f>$f</a><br>" >> index.html
end

echo "</html>" >> index.html
exit 0
