tee
Copy standard input to each FILE, and also to standard output.

tee
tee –output-error[=MODE]
Set behavior on write error.
‘warn’ Diagnose errors writing to any output.
‘warn-nopipe’ Diagnose errors writing to any output not a pipe.
‘exit’ Exit on error writing to any output.
‘exit-nopipe’ Exit on error writing to any output not a pipe.
Default = ‘warn-nopipe’