Cut and paste error missed a ">" where a ">>" was needed, fixed below... --------------------------- echo "<html><head></head><body>" >tmp.htm echo "<p>Your results..." >>tmp.htm grep -l -i "$1" *.html | sed 's@\(.*\)@<br><a href="\1">\1<a>@' >> tmp.htm echo "</body></html>" >>tmp.htm ---------------------------
--Eljay