tee

NAME

tee - pipe fitting (duplicate standard input)

SYNOPSIS

tee [-ai] [file ...]

DESCRIPTION

The tee(1) utility copies standard input to standard output, making a copy in zero or more files. The output is unbuffered.

The following options are available:

-a
Append the output to the files rather than overwriting them.
-i
Ignore the SIGINT signal.

The file is a path name of an output file.

The tee(1) utility takes the default action for all signals, except in the event of the -i option.

DIAGNOSTICS

The tee(1) utility exits 0 on success, and >0 if an error occurs.