From: Ibraheem Umaru-Mohammed <umarumohammed@btinternet.com>
To: ZSH User List <zsh-users@sunsite.dk>
Subject: Re: how to pipe to stdout and stderr
Date: Thu, 18 Dec 2003 09:59:23 +0000 [thread overview]
Message-ID: <20031218095923.GA15159@umarumohammed.btinternet.com> (raw)
In-Reply-To: <20031218020123.GA7059@spiegl.de>
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.
--
next prev parent reply other threads:[~2003-12-18 9:59 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-12-18 0:12 Andy Spiegl
2003-12-18 1:44 ` Ibraheem Umaru-Mohammed
2003-12-18 2:01 ` Andy Spiegl
2003-12-18 2:17 ` Hisham Muhammad
2003-12-18 9:59 ` Ibraheem Umaru-Mohammed [this message]
2003-12-18 2:13 ` Dan Nelson
2003-12-18 10:17 ` Andy Spiegl
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20031218095923.GA15159@umarumohammed.btinternet.com \
--to=umarumohammed@btinternet.com \
--cc=zsh-users@sunsite.dk \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.vuxu.org/mirror/zsh/
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).