Synopsis
tee [-ai] [file ...]
Description
The tee utility copies standard input to standard output, making a copy in zero or more files. The output is unbuffered.
The tee utility takes the default action for all signals, except when the -i option is specified.
Options
Environment Variables
tee is affected by the following environment variables:
Exit Status
Related information
Examplesgrep 'off_set=' code/*.java | tee file1 file2 file3 > logfile
cat back9 | tee pro.tees pro.tees.bak