tee(1) CLIX tee(1)
NAME
tee - Transcribes stdin to stdout and copies to a file
SYNOPSIS
tee [-i] [-a] [file ... ]
FLAGS
-i Ignores interrupts.
-a Causes the output to be appended to the files rather than overwriting
them.
DESCRIPTION
The tee command transcribes stdin to stdout and makes copies of the
transcription in the file(s).
EXAMPLES
1. To take input from the pipe, append it to the file log1, and echo it
to stdout, use the following:
cat a | tee -a log1
2. To copy all input from the pipe into mylog and stdout, ignoring
interrupts, enter the following command line:
dodaemon | tee -i mylog
DIAGNOSTICS
tee: cannot access file
The output file could not be opened. The permissions might be
wrong.
EXIT VALUES
A bad usage will exit with a value of 2; otherwise, no exit values are
defined.
2/94 - Intergraph Corporation 1