On Tue, 27 Jul 1999, era eriksson wrote:
You can embed the data in a string and then echo it back, but it will
be a bit cumbersome. I've been using sed for this occasionally:
MESSAGE='\
Multi-line message I like to\
interpolate into the forwarded\
message using sed\
'
:0fbw
| sed 1i"$MESSAGE"
Would:
MESSAGE='
Multi-line message I like to
interpolate into the forwarded message
'
:0fbw
| echo "$MESSAGE" ; cat -
be simpler/faster/less hassle/work at all?
--
John Hardin KA7OHZ
jhardin(_at_)wolfenet(_dot_)com
pgpk -a finger://gonzo.wolfenet.com/jhardin PGP key ID: 0x41EA94F5
PGP key fingerprint: A3 0C 5B C2 EF 0D 2C E5 E9 BF C8 33 A7 A9 CE 76
-----------------------------------------------------------------------
Efficiency can magnify good, but it magnifies evil just as well.
So, we should not be surprised to find that modern electronic
communication magnifies stupidity as *efficiently* as it magnifies
intelligence.
-- Robert A. Matern
-----------------------------------------------------------------------
43 days until 9/9/99