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

Reply via email to