Here is one way:
printf <<TEST;
This is line 1
This is line 2
This is line 3
TEST
which outputs:
This is line 1
This is line 2
This is line 3
Wags ;)
-----Original Message-----
From: Russell Brooks [mailto:[EMAIL PROTECTED]]
Sent: Monday, September 17, 2001 11:01
To: [EMAIL PROTECTED]
Subject: Dumping paragraphs of text
Hi,
Is there a more elegant and/or efficient way of dumping different
paragraphs of text based on a logical test than imbedding multiple line
print statements in the code? For instance,
if (test) {
print something;
print ...;
print ...;
}
else {
print something else;
print ...;
print ...;
}
Can this be done with something like a begin / end block?
Thanks,
Russ Brooks
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]