Files
tldr/pages.zh/common/pee.md

17 lines
469 B
Markdown
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# pee
> 将 `stdin` 分配给管道。
> 另请参见:`tee`。
> 更多信息:<https://joeyh.name/code/moreutils/>.
- 运行每个命令,为每个命令提供 `stdin` 的独立副本:
`pee {{command1 command2 ...}}`
-`stdin` 的副本写入 `stdout`(类似于 `tee`
`pee cat {{command1 command2 ...}}`
- 在接收到 SIGPIPE 信号时立即终止并写入错误:
`pee --no-ignore-sigpipe --no-ignore-write-errors {{command1 command2 ...}}`