In a message dated: Wed, 24 Jan 2001 12:38:20 EST
"Thomas M. Albright" said:
># Create the base web-page
> touch thumbnails.html
> echo "<html>" >> thumbnails.html
> echo "<head>" >> thumbnails.html
> echo "<title>Thumbnails</title>" >> thumbnails.html
> echo "</head>" >> thumbnails.html
> echo "<body>" >> thumbnails.html
You can shorten this to:
1. cat <<END >> thumbnails.html
<html>
<head>
<title>Thumbnails</title>
</head>
<body>
END
Or, if you don't mind it all being on one line:
2. echo "<html><head><title>Thumbnails</title></head><body>" >> thumbnails.html
Or, if you just want to get ridiculous (why you'd want to do this, I don't
know, just that you can :)
3. for i in html head title Thumbnails /title /head body
do
if [ "$i" != "Thumbnails" -a "$i" != "head" ]
then
if [ "$i" = "title" ]
then
echo -n "<$i>" >> /tmp/tn.html
else
echo "<$i>" >> /tmp/tn.html
fi
else
echo -n "$i" >> thunbnails.html
fi
done
I think I prefer option 1 or 2. 3 is just plain silly IMO, but it's option :)
--
Seeya,
Paul
----
It may look like I'm just sitting here doing nothing,
but I'm really actively waiting for all my problems to go away.
If you're not having fun, you're not doing it right!
**********************************************************
To unsubscribe from this list, send mail to
[EMAIL PROTECTED] with the following text in the
*body* (*not* the subject line) of the letter:
unsubscribe gnhlug
**********************************************************