tee — Replicate the Standard Output

Synopsis

/usr/bin/tee [-ai][file...] 

Description

The tee command is analogous to a tee joint in plumbing that splits an incoming stream of water. tee splits standard input into two or more output streams, sending one to standard output and the others to files you specify on the command line.

You can use the tee command to monitor a command to make sure it is doing what you want or to save an intermediate step in a pipeline sequence. tee does not buffer its output. The options determine if the specified files are overwritten or appended to.

Options

-a Append the output to the files instead of overwriting them.
-i Ignore interrupts.

Operands

file A path name of an output file. You can process at least ...

Get Solaris™ 7 Reference now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.