From: andrey mirtchovski <mirtchovski@gmail.com>
To: Fans of the OS Plan 9 from Bell Labs <9fans@9fans.net>
Subject: Re: [9fans] acme: send dot to the stdin of a more complicated command
Date: Mon, 8 Jun 2009 10:58:10 -0600 [thread overview]
Message-ID: <14ec7b180906080958l71642089k6fbe672fd18c9771@mail.gmail.com> (raw)
In-Reply-To: <a560a5d00906080934uc1db2b3qb98783db4e6e2c83@mail.gmail.com>
> well, I hoped this would be the last way... It makes me create files I
> don't actually need.
remember, this is plan9 and everything is a file. chances are your
"script" is already available in some filesystem and you don't need to
write it out:: create a new window inside acme, type your awk script
and then issue ">awk -f /mnt/wsys/X/body" where X is the ID of your
window.
you'll need to figure out what the new window's ID is, but that's not
too difficult, simply middle-click something like this after you've
created the script window:
grep -l foo /mnt/wsys/[0-9]*/body
where 'foo' is some unique part of your script.
next prev parent reply other threads:[~2009-06-08 16:58 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-06-08 12:48 Rudolf Sykora
2009-06-08 16:04 ` Lyndon Nerenberg
2009-06-08 16:34 ` Rudolf Sykora
2009-06-08 16:58 ` andrey mirtchovski [this message]
2009-06-08 17:30 ` Rudolf Sykora
2009-06-08 17:35 ` andrey mirtchovski
2009-06-08 17:45 ` Rudolf Sykora
2009-06-08 17:42 ` yy
2009-06-08 18:15 ` Russ Cox
2009-06-08 18:35 ` Dan Cross
2009-06-08 18:59 ` [9fans] acme: send dot to the stdin of a more complicated Skip Tavakkolian
2009-06-09 8:28 ` [9fans] acme: send dot to the stdin of a more complicated command Rudolf Sykora
2013-08-28 8:05 ` Rudolf Sykora
2013-08-28 12:13 ` dexen deVries
2013-08-28 12:53 ` Rudolf Sykora
2013-08-28 15:11 ` James A. Robinson
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=14ec7b180906080958l71642089k6fbe672fd18c9771@mail.gmail.com \
--to=mirtchovski@gmail.com \
--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).