From: Gregory Pavelcak <g.pavelcak@comcast.net>
To: 9fans@cse.psu.edu
Subject: Re: [9fans] late to the party - Here docs
Date: Wed, 7 Nov 2007 20:21:55 -0500 [thread overview]
Message-ID: <58e2155e54c999d45cdcd0ad7033abed@comcast.net> (raw)
In-Reply-To: <276D99AB-6285-4ED0-BEB6-6033428AD660@mac.com>
This may be spectacularly stupid, but . . .
It seems to me that the Plan 9 (or UNIX) way here, given pipes
and good text processing tools, is to think that there is absolutely
no need for me to write rc scripts the way that rc demands that
I write them as long as I have a (perhaps sed or awk based)
preprocessor. So, instead of actually writing
echo 1
echo 2
.
.
.
echo n
one might just write
echoon
1
2
.
.
.
n
echooff
and pass it through the preprocessor before it gets run by rc.
Is that nuts? It seems to me that, if you don't write a lot of long
here doc using scripts, you can just write the echos, but if you
do, it might be worthwhile to do something like that.
Just a mildly buzzed thought. Man, the Berkshire Brewing
Company makes some good beer. :-)
Greg
next prev parent reply other threads:[~2007-11-08 1:21 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-11-06 20:31 maht-9fans
2007-11-06 21:07 ` erik quanstrom
2007-11-07 16:41 ` dave.l
2007-11-07 20:19 ` erik quanstrom
2007-11-07 21:20 ` geoff
2007-11-07 21:23 ` erik quanstrom
2007-11-07 22:58 ` Martin Neubauer
2007-11-07 23:04 ` erik quanstrom
2007-11-07 23:24 ` Martin Neubauer
2007-11-08 0:37 ` dave.l
2007-11-08 1:21 ` Gregory Pavelcak [this message]
2007-11-06 21:54 ` arisawa
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=58e2155e54c999d45cdcd0ad7033abed@comcast.net \
--to=g.pavelcak@comcast.net \
--cc=9fans@cse.psu.edu \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).