Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: how to pipe to stdout and stderr
- X-seq: zsh-users 6921
- From: Ibraheem Umaru-Mohammed <umarumohammed@xxxxxxxxxxxxxx>
- To: ZSH User List <zsh-users@xxxxxxxxxx>
- Subject: Re: how to pipe to stdout and stderr
- Date: Thu, 18 Dec 2003 09:59:23 +0000
- In-reply-to: <20031218020123.GA7059@xxxxxxxxx>
- Mailing-list: contact zsh-users-help@xxxxxxxxxx; run by ezmlm
- References: <20031218001201.GA27866@xxxxxxxxx> <1071711880.5099.9.camel@umarumohammed> <20031218020123.GA7059@xxxxxxxxx>
On [18/12/03 03:01 +0100], Andy Spiegl wrote:
> > <ibraheem@umarumohammed:~/try> ls foo bar > stdout 2> stderr
>
> Thanks, but I don't want to redirect to 2 files, but pipe to 2 programs.
> Andy.
Right, I get ya. Does this help:
[...]
<ibraheem@umarumohammed:~/try> ls
<ibraheem@umarumohammed:~/try> touch foo
<ibraheem@umarumohammed:~/try> ls
foo
<ibraheem@umarumohammed:~/try> ls foo bar >>(cat > stdout) 2>>(cat > stderr)
<ibraheem@umarumohammed:~/try> ls
foo stderr stdout
<ibraheem@umarumohammed:~/try> cat stdout
foo
<ibraheem@umarumohammed:~/try> cat stderr
ls: bar: No such file or directory
[...]
HTH,
--ibz.
--
Messages sorted by:
Reverse Date,
Date,
Thread,
Author