9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
From: "Matthias Teege" <mteege@gmail.com>
To: 9fans@cse.psu.edu
Subject: [9fans] winclear in p9p
Date: Tue, 31 Oct 2006 18:22:36 +0100	[thread overview]
Message-ID: <88a477560610310922j6c5ed52dg6327ab6587479977@mail.gmail.com> (raw)

Moin,

I've found

fn winclear {
	echo -n Edit ,d > /dev/acme/body
	echo -n /Edit ,d/ > /dev/acme/addr
	echo -n 'dot=addr' > /dev/acme/ctl
	cat /dev/acme/addr | awk '{printf("MX%s %s\n", $1, $2)}' > /dev/acme/event
}

in the wiki but how do I clear a win in Plan 9 ports? To be accurate I
need to replace some text in the middle of the body and it would be
nice, if I can avoid a tempfile.

Many thanks
Matthias


             reply	other threads:[~2006-10-31 17:22 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-10-31 17:22 Matthias Teege [this message]
2006-10-31 18:06 ` Paul Lalonde
2006-10-31 18:56   ` Russ Cox
2006-11-09 20:17 ` Russ Cox
2006-11-10 13:54   ` David Leimbach
2006-11-10 14:17   ` David Leimbach
2006-11-11  0:35     ` Arvindh Rajesh Tamilmani

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=88a477560610310922j6c5ed52dg6327ab6587479977@mail.gmail.com \
    --to=mteege@gmail.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).