pee
tees stdin to multiple commands
TLDR
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"
SYNOPSIS
pee [command...]
DESCRIPTION
pee tees stdin to multiple commands. Like tee but to processes.
The tool duplicates input to commands. Part of moreutils.
PARAMETERS
COMMAND
Commands to receive input.Each command receives a copy of stdin.
CAVEATS
Part of moreutils. Each command gets full input. Parallel execution.
HISTORY
pee is part of moreutils for piping to multiple processes.

