Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > gnu.bash.bug > #16539

Re: foo | tee /dev/stderr | bar # << thanks!

From bug-bash@trodman.com
Newsgroups gnu.bash.bug
Subject Re: foo | tee /dev/stderr | bar # << thanks!
Date 2020-07-04 13:42 -0500
Message-ID <mailman.965.1593888136.2574.bug-bash@gnu.org> (permalink)
References <202007031432.063EWIhD3254754@epjdn.zq3q.org> <936693AC-5B43-4A84-A993-BCA6142AA381@larryv.me> <202007041842.064Ig08v3769297@epjdn.zq3q.org>

Show all headers | View raw


Hi Lawrence:

On Fri 7/3/20 14:03 -0400 =?utf-8?Q?Lawrence_Vel=C3=A1zquez?= wrote:
>What's wrong with `foo | tee /dev/stderr | bar`?

Perfect!

This morning I had thought of

    foo | tee >(cat >&2) | bar

but your soln is simplier.  I assume /dev/stderr is on non linux UNIX
also.

--
thanks-you!,
Tom
--
$ seq 5 | tee /dev/stderr |tail -2
1
2
3
4
5
4
5

Back to gnu.bash.bug | Previous | Next | Find similar


Thread

Re: foo | tee /dev/stderr | bar  # << thanks! bug-bash@trodman.com - 2020-07-04 13:42 -0500

csiph-web