On Tue, 26 Aug 2003 10:14:29 -0500, Bret Baptist <bbaptist at iexposure.com> wrote: > 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>" What is this "Pron" everyone keeps talkin' about???? ;) > print "</head>" > print "<body bgcolor=#ffffff>" } > { print "<P><IMG SRC=" $1 "></P>" } > END { print "</body>" > print "</html>" }' > index.html > > _______________________________________________ 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