Tools: MPW
Advanced Search
Apple Developer Connection
Member Login Log In | Not a Member? Support

MPW Command Reference


Tee

Tool

SYNTAX

Tee [-a] [file1] [file2]…

DESCRIPTION

The Tee tool duplicates the standard input stream to the standard ouput stream, and also to any files specified on the command line.

INPUT

Standard input

OUTPUT

Standard output, and any files specified as parameters on the command line.

STATUS

Tee can return the following status codes:

0

no errors

1

error in parameters

2

unable to allocate system resources

PARAMETERS

[file1] [file2]…

Specifies one or more text files as output.

OPTIONS

-a

Appends output to output files.

EXAMPLES

The command line

Files | Tee FileList_1 FileList_2

will generate a file listing and display it on the screen, and will also place a copy of the listing in the FileList_1 and FileList_2 output files.

 
 


Last Updated June 2001