HiveBrain v1.2.0
Get Started
← Back to all entries
snippetbashTip

pee — Tee `stdin` to pipes. See also: `tee`. More information: <https://manned.org/pee>.

Submitted by: @import:tldr-pages··
0
Viewed 0 times
commandpeeclistdinteepipesseealso

Problem

How to use the pee command: Tee stdin to pipes. See also: tee. More information: <https://manned.org/pee>.

Solution

pee — Tee stdin to pipes. See also: tee. More information: <https://manned.org/pee>.

Run each command, providing each one with a distinct copy of stdin:
pee {{command1 command2 ...}}


Write a copy of stdin to stdout (like tee):
pee cat {{command1 command2 ...}}


Immediately terminate upon SIGPIPEs and write errors:
pee --no-ignore-sigpipe --no-ignore-write-errors {{command1 command2 ...}}

Code Snippets

Run each command, providing each one with a distinct copy of `stdin`

pee {{command1 command2 ...}}

Write a copy of `stdin` to `stdout` (like `tee`)

pee cat {{command1 command2 ...}}

Immediately terminate upon SIGPIPEs and write errors

pee --no-ignore-sigpipe --no-ignore-write-errors {{command1 command2 ...}}

Context

tldr-pages: common/pee

Revisions (0)

No revisions yet.