From mboxrd@z Thu Jan 1 00:00:00 1970 MIME-Version: 1.0 In-Reply-To: References: Date: Mon, 8 Jun 2009 10:58:10 -0600 Message-ID: <14ec7b180906080958l71642089k6fbe672fd18c9771@mail.gmail.com> From: andrey mirtchovski To: Fans of the OS Plan 9 from Bell Labs <9fans@9fans.net> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Subject: Re: [9fans] acme: send dot to the stdin of a more complicated command Topicbox-Message-UUID: 0678e9c8-ead5-11e9-9d60-3106f5b1d025 > 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.