while and cats

Nathan Aubrey nathan at paysonlinux.org
Mon Feb 5 12:34:06 MST 2007


> Since he's outputting to html, he probably really does want to use a
> "here document" at some point for formatting.
>
> The trick there, I think, is in the indenting. If never sees the "EOF"
> because it's indented. Check the manpage for bash to see about alternate
> forms of <<EOF which ignore leading whitespace...

Brilliant, thank you! I didn't realize that it could not be intdented. Removed 
the indentation and it works like a charm. Throws off all my pretty 
structure, but I like the cat better than echo'ing all that.

Thank you very much.

nathan


More information about the PLUG-discuss mailing list