Museum

Home

Lab Overview

Retrotechnology Articles

⇒ Online Manual

Media Vault

Software Library

Restoration Projects

Artifacts Sought

tee(1)

NAME

tee − pipe fitting

SYNOPSIS

tee [-i] [-a] [file] ...

DESCRIPTION

tee transcribes the standard input to the standard output and makes copies in the files. The -i option ignores interrupts; the -a option causes the output to be appended to the files rather than overwriting them. 

EXTERNAL INFLUENCES

Environment Variables

LANG determines the language in which messages are displayed. 

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

Upon completion, tee returns one of the following values:

 0 Successful completion. 

>0 Error condition occured. 

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, XPG2, XPG3, POSIX.2

Hewlett-Packard Company  —  HP-UX Release 9.03: April 1994

Typewritten Software • bear@typewritten.org • Edmonds, WA 98026