From mboxrd@z Thu Jan 1 00:00:00 1970 MIME-Version: 1.0 Date: Thu, 1 Oct 2009 10:26:06 +0200 Message-ID: <138575260910010126p6c629a88qc8ec1be7ce3ff2a2@mail.gmail.com> From: hugo rivera To: Fans of the OS Plan 9 from Bell Labs <9fans@9fans.net> Content-Type: text/plain; charset=UTF-8 Subject: [9fans] handling output Topicbox-Message-UUID: 7ace9a2a-ead5-11e9-9d60-3106f5b1d025 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