tee.1 (2010 09)

t
tee(1) tee(1)
NAME
tee - pipe fitting to copy standard output to file
SYNOPSIS
tee [-i][-a
][file]...
DESCRIPTION
The
tee command transcribes the standard input to the standard output and makes copies in the files.
Options
-i This option ignores interrupts.
-a This option appends the output to the files rather than overwriting the files .
EXTERNAL INFLUENCES
Environment Variables
LC_MESSAGES determines the language in which messages are displayed.
If
LC_MESSAGES is not specified in the environment or is set to the empty string, the value of
LANG is
used as a default for each unspecified or empty variable. If
LANG is not specified or is set to the empty
string, a default of "C" (see lang(5)) is used instead of
LANG.
If any internationalization variable contains an invalid setting,
tee behaves as if all internationalization
variables are set to "C". See environ (5).
International Code Set Support
Single- and multibyte character code sets are supported.
RETURN VALUE
The
tee command returns zero upon successful completion, or nonzero if the command fails.
EXAMPLES
Write a list of users to the screen and also append the list to the file
hunt:
who | tee -a hunt
STANDARDS CONFORMANCE
tee: SVID2, SVID3, XPG2, XPG3, XPG4, POSIX.2
HP-UX 11i Version 3: September 2010 1 Hewlett-Packard Company 1

Summary of content (2 pages)