tee(C) 19 June 1992 tee(C) Name tee - create a tee in a pipe Syntax tee [ -i ] [ -a ] [ -u ] [ file ] ... Description The tee command 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/tty | sort | uniq >final.file Standards conformance tee is conformant with: AT&T SVID Issue 2; and X/Open Portability Guide, Issue 3, 1989.