tee(1)

NAME
tee - record input in files

SYNTAX
tee [ -ai ] [ filename ] ...

DESCRIPTION
tee copies its input to its output (without buffering), with records in zero or more files. Each filename argument specifies a record file. Any filename which does not exist is created. tee has two flags:

-a  Append to each filename instead of truncating it.

-i  Ignore the SIGINT signal.

This version of tee uses multitee to perform all input and output. Any use of tee from the shell can be written in terms of multitee.

EXIT VALUE
0 normally. 1 for usage messages. 3 if tee runs out of memory. 4 if multitee cannot be executed.

DIAGNOSTICS

fatal: out of memory
    tee has run out of memory.

warning: cannot open file
    Self-explanatory. tee will continue processing other files in this case.

BUGS
None known.

VERSION
tee version 1.0, 7/22/91.

AUTHOR
Placed into the public domain by Daniel J. Bernstein.

SEE ALSO
multitee(1)