LinuxCommandLibrary
GitHubF-DroidGoogle Play Store

pee

tees stdin to multiple commands

TLDR

Pipe to multiple commands
$ echo "data" | pee [cmd1] [cmd2]
copy
Tee to processes
$ cat [file] | pee "wc -l" "wc -w"
copy
Process and save
$ cat [log] | pee "grep error" "cat > copy.log"
copy

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.

SEE ALSO

tee(1), moreutils(7)

Copied to clipboard
Kai