On Tuesday 26 August 2003 9:41 am, Shawn wrote:
> I want to take an ls of a directory and dump it into an html file (pics)
> for temporary use. Until I get a sight up with thumbnails (read lack of
> time right now).
>
> What's the best way to do this?
>
> I tried a for loop, but it didn't work.
>
> any help on this would be appreciated.

This might work:

ls | awk ' BEGIN { print "<html>"
print "<head>"
print "<title>My Pron</title>"
print "</head>"
print "<body bgcolor=#ffffff>" }
{ print "<P><IMG SRC=" $1 "></P>" }
END { print "</body>"
print "</html>" }' > index.html


-- 
Bret Baptist
Systems and Technical Support Specialist
bbaptist at iexposure.com
Internet Exposure, Inc.
http://www.iexposure.com
 
(612)676-1946 x17
Web Development-Web Marketing-ISP Services
------------------------------------------


Today is the tomorrow you worried about yesterday.


_______________________________________________
TCLUG Mailing List - Minneapolis/St. Paul, Minnesota
http://www.mn-linux.org tclug-list at mn-linux.org
https://mailman.real-time.com/mailman/listinfo/tclug-list