From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: To: 9fans@9fans.net From: Richard Miller <9fans@hamnavoe.com> Date: Thu, 1 Oct 2009 09:45:12 +0100 In-Reply-To: <138575260910010126p6c629a88qc8ec1be7ce3ff2a2@mail.gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit Subject: Re: [9fans] handling output Topicbox-Message-UUID: 7adfa2ca-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} ls | tee >{grep regexp1 >file1} | grep regexp2 >file2