TEE(1) | General Commands Manual | TEE(1) |
tee
— duplicate
standard input
tee |
[-ai ] [file ...] |
The tee
utility copies standard input to
standard output, making a copy in zero or more files. The output is
unbuffered.
The following options are available:
The following operands are available:
The tee
utility takes the default action
for all signals, except in the event of the -i
option.
The tee
utility exits 0 on success,
and >0 if an error occurs.
Send the echoed message both to stdout and to the greetings.txt file:
$ echo "Hello" | tee greetings.txt Hello
The tee
utility is expected to be
IEEE Std 1003.2 (“POSIX.2”)
compatible.
June 23, 2020 | macOS 15.0 |