Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 17 Apr 2000 18:56:13 -0500 (CDT)
From:      Steve Price <sprice@hiwaay.net>
To:        freebsd-chat@freebsd.org
Subject:   Un*x scripting magic
Message-ID:  <Pine.OSF.4.21.0004171843020.30502-100000@fly.HiWAAY.net>

next in thread | raw e-mail | index | archive | help
Hi all,

A have a chunk of perl code something like this.

  # insert bunch of code here

    my $msg <<EndOfMessage;
%%MESSAGE%%
EndOfMessage

  # more code goes here

Then I have a multi-line (printable characters only) ASCII
text file containing the message that I'd like to replace
for %%MESSAGE%%. [1]  Anyone have a neat little trick in
their bag-o-magic?  I know the answer should be really
obvious but everything I've tried thus either hasn't worked
or was too convoluted.

TIA.

-steve

[1] The code is something that I wrote and the content of
    the message is being written by someone else.  I'd really
    like to keep their hands out of the code if at all
    possible.



To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-chat" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.OSF.4.21.0004171843020.30502-100000>