tee(1) tee(1)
NAME [Toc] [Back]
tee - pipe fitting
SYNOPSIS [Toc] [Back]
tee [-i] [-a] [file] ...
DESCRIPTION [Toc] [Back]
The tee command transcribes the standard input to the standard output
and makes copies in the files.
Options [Toc] [Back]
-i This option ignores interrupts.
-a This option appends the output to the files rather than
overwriting the files.
EXTERNAL INFLUENCES [Toc] [Back]
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 [Toc] [Back]
Single- and multi-byte character code sets are supported.
RETURN VALUE [Toc] [Back]
The tee command returns zero upon successful completion, or nonzero if
the command fails.
EXAMPLES [Toc] [Back]
Write a list of users to the screen and also append the list to the
file hunt:
who | tee -a hunt
STANDARDS CONFORMANCE [Toc] [Back]
tee: SVID2, SVID3, XPG2, XPG3, XPG4, POSIX.2
Hewlett-Packard Company - 1 - HP-UX 11i Version 2: August 2003 [ Back ] |