From mboxrd@z Thu Jan 1 00:00:00 1970 MIME-Version: 1.0 In-Reply-To: <138575260910010126p6c629a88qc8ec1be7ce3ff2a2@mail.gmail.com> References: <138575260910010126p6c629a88qc8ec1be7ce3ff2a2@mail.gmail.com> Date: Thu, 1 Oct 2009 09:38:45 +0100 Message-ID: From: roger peppe To: Fans of the OS Plan 9 from Bell Labs <9fans@9fans.net> Content-Type: text/plain; charset=UTF-8 Subject: Re: [9fans] handling output Topicbox-Message-UUID: 7ae3c594-ead5-11e9-9d60-3106f5b1d025 2009/10/1 hugo rivera : > 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: that's what tee does. e.g. ls | tee >{grep regexp1 > file1} >{grep regexp2 > file2}