kk_oop@yahoo.com wrote:
Hi. In a Bourne script, is there a way to display a block of lines
without having to "echo" each individual line?
Thanks!
Ken
Yes, it's called "here document"
cat <<- ET
Arbitrary text, and
as many
lines as you wish,
until the final marker
that I named ET in this
case.
ET
If you don't want variables $var etc. to get expanded within the
"here document" use this form
cat <<- \ET
You will get $HME as '$HME' and nothing else.
ET
Janis