9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
From: erik quanstrom <quanstro@coraid.com>
To: 9fans@cse.psu.edu
Subject: Re: [9fans] A simple rc question
Date: Tue, 15 May 2007 11:48:51 -0400	[thread overview]
Message-ID: <2ddf08d5378a0085dbf48bd98d52c3f9@coraid.com> (raw)
In-Reply-To: <13426df10705150838y7148f207m8fbc1631752fc8aa@mail.gmail.com>

i think you have backgrounded the awk, but not the tail.
i think what you want is

	for(f){
		{tail -f $f | awk '{print "'^$f^':" $0}'}&}
	}

it sure looks like there are excessive {}s, but i think they are necessary.
otherwise & will bind to either awk or the for.

- erik


  parent reply	other threads:[~2007-05-15 15:48 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-05-15 15:38 ron minnich
2007-05-15 15:46 ` Charles Forsyth
2007-05-15 15:48 ` erik quanstrom [this message]
2007-05-15 16:08   ` ron minnich
2007-05-15 16:18     ` Charles Forsyth
2007-05-16  0:24 ` Kris Maglione
2007-05-15 23:03 Benn Newman
2007-05-15 23:29 ` ron minnich
2007-05-15 23:35   ` Kris Maglione

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=2ddf08d5378a0085dbf48bd98d52c3f9@coraid.com \
    --to=quanstro@coraid.com \
    --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).