HPlogo HP-UX Reference Volume 1 of 5 > t

tee(1)

» 

Technical documentation

Complete book in PDF

 » Table of Contents

 » Index

NAME

tee — pipe fitting

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 multi-byte 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

© Hewlett-Packard Development Company, L.P.