Linux command
pee 命令
文本
涉及管道、覆盖或删除,执行前请先确认路径和参数。
常用示例
Pipe to multiple commands
echo "data" | pee [cmd1] [cmd2]
Tee to processes
cat [file] | pee "wc -l" "wc -w"
Process and save
cat [log] | pee "grep error" "cat > copy.log"
说明
pee tees stdin to multiple commands. Like tee but to processes. The tool duplicates input to commands. Part of moreutils.
FAQ
What is the pee command used for?
pee tees stdin to multiple commands. Like tee but to processes. The tool duplicates input to commands. Part of moreutils.
How do I run a basic pee example?
Run `echo "data" | pee [cmd1] [cmd2]` in a terminal, then adjust file names, paths, flags, or remote targets for your system.
Where can I find more pee examples?
This page includes 3 examples for pee, plus related commands for nearby Linux tasks.