teeclone output stream |
Command |
tee
[-ai
] [file ...]
tee
command clones an output stream. It copies the
standard input to each output file as well as to the standard output.
-a
appends to (rather than overwrites) each output file.
-i
ignores interrupt signals, making it suitable for use as a background process.
This runs the program prog and pipes the program's standard output intoprog | tee file
tee
. As a result, tee
writes the output
to both the standard output and the specified file.
0
Successful completion.
1
Failure due to any of the following:
2
Failure due to invalid command line option.
cat