.TH tee "" "" Command
.PC "Copy input to multiple output streams"
\fBtee [ \-a ] [ \-i ] [ \fIfile ...\^\fB]\fR
.PP
.HS
.SH Options:
.IC \fB\-a\fR
Append to each output \fIfile\fR
.IC \fB\-i\fR
Ignore interrupts
.HE
.B tee
reads from standard input, usually a pipe,
and writes to the standard output, usually a pipe.
.B tee
also writes a copy of the input data to each
.I file
specified.
.PP
The
.B \-a
flag tells
.B tee
to append data to each
.IR file ,
analogous to the shell construct ``>>\fIfile\fP''.
Otherwise, it creates each
.I file,
analogous to the construct ``>\fIfile\fP''.
.PP
The flag
.B \-i
means ignore interrupts.
.SH "See Also"
.Xr "commands," commands
.Xr "ksh," ksh
.Xr "sh" sh
