Jump to content United States-English
HP.com Home Products and Services Support and Drivers Solutions How to Buy
» Contact HP
More options
HP.com home
HP-UX Reference > T

tee(1)

HP-UX 11i Version 3: February 2007
» 

Technical documentation

» Feedback
Content starts here

 » Table of Contents

 » Index

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

Printable version
Privacy statement Using this site means you accept its terms Feedback to webmaster
© 1983-2007 Hewlett-Packard Development Company, L.P.