9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
From: erik quanstrom <quanstro@quanstro.net>
To: 9fans@9fans.net
Subject: Re: [9fans] Examples of rc scripts
Date: Fri, 20 Nov 2009 09:28:12 -0500	[thread overview]
Message-ID: <19a2cc1e207f794fab99a428e4a62b85@ladd.quanstro.net> (raw)
In-Reply-To: <<he5qpa$1dp$1@ger.gmane.org>>

On Fri Nov 20 05:26:26 EST 2009, mauricio.antunes@gmail.com wrote:
> Hi, all,
>
> I found 'werc' in a wikipedia link, and used it
> as a source for examples of how to use rc. Are there
> other places where I can found rc scripts, as well
> as other scripts for plan9 tools?

here are the scripts from the plan 9 distribution.
	http://sources.coraid.com/sources/plan9/rc
and plan 9 ports
	http://code.swtch.com/plan9port/src/tip/bin/

> (By the way, do you know how can I attribute a
> here document to a variable?)

minooka; x=`{cat <<h}
1
2
3
h

since here docs are redirection, quoting is probablly
easier to use.  also if you're assigning a variable to
the here doc, you're missing the one advantage they
have: reduced memory usage.

- erik



       reply	other threads:[~2009-11-20 14:28 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <<he5qpa$1dp$1@ger.gmane.org>
2009-11-20 14:28 ` erik quanstrom [this message]
     [not found] <<d65cc7efe2be7edc2d2fca6c0c6f1df6@quintile.net>
2009-11-21 16:41 ` erik quanstrom
2009-11-20 10:24 Maurí­cio CA
2009-11-21 16:22 ` Steve Simon
2009-11-23 12:18 ` matt

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=19a2cc1e207f794fab99a428e4a62b85@ladd.quanstro.net \
    --to=quanstro@quanstro.net \
    --cc=9fans@9fans.net \
    /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).