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