User Commands tee(1) NAME tee - replicate the standard output SYNOPSIS /usr/bin/tee /usr/bin/tee [ options ] [file...] ksh93 tee [ options ] [file...] DESCRIPTION tee copies standard input to standard output and to zero or more files. The options determine whether the specified files are overwritten or appended to. The tee utility does not buffer output. If writes to any file fail, writes to other files continue although tee will exit with a non-zero exit status. The number of file operands that can be specified is limited by the underlying operating system. OPTIONS The following options are supported: -a, --append Append the standard input to the given files rather than overwriting them. -i, --ignore-interrupts Ignore SIGINT signal. -l, --linebuffer Set the standard output to be line buffered --man, --html, --nroff Prints builtin manual page in either plain text, HTML or nroff format. --help Prints basic help information --version Prints version information OPERANDS The following operands are supported: file A path name of an output file. USAGE See largefile(5) for the description of the behavior of tee when encountering files greater than or equal to 2 Gbyte ( 2 **31 bytes). ENVIRONMENT VARIABLES See environ(5) for descriptions of the following environment variables that affect the execution of tee: LANG, LC_ALL, LC_CTYPE, LC_MESSAGES, and NLSPATH. EXIT STATUS The following exit values are returned: 0 The standard input was successfully copied to all output files. >0 The number of files that could not be opened or whose status could not be obtained. SunOS 5.10 Last change: 20 Dec 1996 1 User Commands tee(1) ATTRIBUTES See attributes(5) for descriptions of the following attri- butes: ____________________________________________________________ | ATTRIBUTE TYPE | ATTRIBUTE VALUE | |_____________________________|_____________________________| | Availability | SUNWcsu | |_____________________________|_____________________________| | CSI | Enabled | |_____________________________|_____________________________| | Interface Stability | Standard | |_____________________________|_____________________________| This command conforms to IEEE Std 1003.1-2008. SEE ALSO cat(1), head(1), ksh93(1), tail(1), attributes(5), environ(5), largefile(5), standards(5), http://www.opengroup.org/onlinepubs/9699919799/utilities/tee.html SunOS 5.10 Last change: 20 Dec 1996 2