TEE(C) XENIX System V TEE(C)
Name
tee - Creates a tee in a pipe.
Syntax
tee [ -i ] [ -a ] [ -u ] [ file ] ...
Description
tee transcribes the standard input to the standard output
and makes copies in the files. The -i option ignores
interrupts; the -a option causes the output to be appended
to the files rather than overwriting them. The -u option
causes the output to be unbuffered.
Examples
The following example illustrates the creation of temporary
files at each stage in a pipeline:
grep ABC | tee ABC.grep | sort | tee ABC.sort | more
This example shows how to tee output to the terminal screen:
grep ABC | tee /dev/ttyxx | sort | uniq >final.file
Page 1 (printed 8/7/87)