9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
* [9fans] handling output
@ 2009-10-01  8:26 hugo rivera
  2009-10-01  8:38 ` roger peppe
                   ` (2 more replies)
  0 siblings, 3 replies; 7+ messages in thread
From: hugo rivera @ 2009-10-01  8:26 UTC (permalink / raw)
  To: Fans of the OS Plan 9 from Bell Labs

I've been wondering for a while if there's some way to multiplex (if
this is the correct term) stdout for a given program:
% ls @ {grep regexp1 > file1 } @ {grep regexp2 > file2}
where @ is an operator that would copy ls stdout to two (maybe more)
different file descriptors. Probably some syntax is required
(something like @[1=3]).
I think a c program can be written to accomplish this, but I'd like to
hear your opinion about it. Am I on the right path or just talking
rubbish?
Saludos

--
Hugo



^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2009-10-01  9:52 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-10-01  8:26 [9fans] handling output hugo rivera
2009-10-01  8:38 ` roger peppe
2009-10-01  9:09   ` hugo rivera
2009-10-01  9:29     ` matt
2009-10-01  9:52       ` hugo rivera
2009-10-01  8:44 ` Sam Watkins
2009-10-01  8:45 ` Richard Miller

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).