tee − pipe fitting
tee [−ai] [file ...]
tee reads data from standard input, copying it to standard output and to any files given as arguments. If no file arguments are provided, tee behaves like the cat utility and copies only to standard output. Files are opened in write mode by default, and output is not buffered.
The following options are available:
|
−a |
Append output to the files instead of overwriting them |
|||
|
−i |
Ignore the SIGINT signal |
tee exits 0 on success, and >0 to indicate an error