1996-09-03 03:56:08 +00:00
|
|
|
.\"
|
1997-10-30 03:35:21 +00:00
|
|
|
.\" $Id: tee.1,v 1.4 1997/10/30 03:32:46 gdr Exp $
|
|
|
|
.\"
|
|
|
|
.TH TEE 1 "5 October 1997" GNO "Commands and Applications"
|
1996-01-28 00:53:44 +00:00
|
|
|
.SH NAME
|
|
|
|
tee \- Pipe fitting.
|
|
|
|
.SH SYNOPSIS
|
|
|
|
.B tee
|
|
|
|
[
|
1996-09-03 03:56:08 +00:00
|
|
|
.I -aviV
|
1996-01-28 00:53:44 +00:00
|
|
|
]
|
|
|
|
.I file1
|
|
|
|
[
|
|
|
|
.IR file2 ...
|
|
|
|
]
|
|
|
|
.SH DESCRIPTION
|
|
|
|
The
|
|
|
|
.B tee
|
|
|
|
utility copies standard input to standard
|
|
|
|
output, making a copy in
|
|
|
|
.IR file1 ,
|
|
|
|
.IR file2 ,
|
|
|
|
etc.
|
1996-09-03 03:56:08 +00:00
|
|
|
The standard output is by default unbuffered, while output to the
|
1996-01-28 00:53:44 +00:00
|
|
|
.IR file s
|
|
|
|
is fully buffered
|
|
|
|
.LP
|
|
|
|
The following options are available:
|
1996-09-03 03:56:08 +00:00
|
|
|
.RS
|
1996-01-28 00:53:44 +00:00
|
|
|
.IP "\fI-a\fR
|
|
|
|
Append the output to the
|
|
|
|
.IR file s
|
|
|
|
rather than overwriting them.
|
1996-09-03 03:56:08 +00:00
|
|
|
.IP \fI-b\fR
|
|
|
|
Use line buffering on stdin and stdout. By default, there is no buffering
|
|
|
|
on these two streams.
|
|
|
|
.IP \fI-i\fR
|
1996-01-28 00:53:44 +00:00
|
|
|
Ignore the SIGINT signal.
|
1996-09-03 03:56:08 +00:00
|
|
|
.IP \fI-V\fR
|
|
|
|
Show version and usage information, then exit.
|
1996-01-28 00:53:44 +00:00
|
|
|
.RE
|
|
|
|
.LP
|
|
|
|
The
|
|
|
|
.B tee
|
|
|
|
utility takes the default action for all
|
|
|
|
signals, except in the event of the
|
|
|
|
.I -i
|
|
|
|
option.
|
|
|
|
.LP
|
|
|
|
If an error occurs while reading stdin, only the first specified
|
|
|
|
.I file
|
|
|
|
will contain the output up to that point.
|
|
|
|
.LP
|
|
|
|
The return value is 0 on success, and 1 if an error
|
|
|
|
occurs.
|
1997-10-30 03:35:21 +00:00
|
|
|
.SH VERSION
|
|
|
|
This manual page documents
|
|
|
|
.BR tee
|
|
|
|
version 1.3.
|
1996-01-28 00:53:44 +00:00
|
|
|
.SH STANDARDS
|
|
|
|
.B Tee
|
|
|
|
is POSIX p1003.2 compatible.
|
|
|
|
.SH HISTORY
|
|
|
|
.B Tee
|
1997-10-30 03:35:21 +00:00
|
|
|
first appeared in GNO v1.x. Version 1.1 and later were written by Devin Reade.
|