xref: /csrg-svn/usr.bin/tee/tee.1 (revision 48536)
1*48536Scael.\" Copyright (c) 1991 Regents of the University of California.
2*48536Scael.\" All rights reserved.
319505Smckusick.\"
4*48536Scael.\" %sccs.include.redist.roff%
5*48536Scael.\"
6*48536Scael.\"     @(#)tee.1	6.2 (Berkeley) 04/22/91
7*48536Scael.\"
8*48536Scael.Dd
9*48536Scael.Dt TEE 1
10*48536Scael.Os BSD 4.4
11*48536Scael.Sh NAME
12*48536Scael.Nm tee
13*48536Scael.Nd pipe fitting
14*48536Scael.Sh SYNOPSIS
15*48536Scael.Nm tee
16*48536Scael.Op Fl ai
17*48536Scael.Op Ar file ...
18*48536Scael.Sh DESCRIPTION
19*48536ScaelThe
20*48536Scael.Nm tee
21*48536Scaelutility copies standard input to standard output,
22*48536Scaelmaking a copy in zero or more files.
23*48536ScaelThe output is unbuffered.
24*48536Scael.Pp
25*48536ScaelThe following options are available:
26*48536Scael.Bl -tag -width Ds
27*48536Scael.It Fl a
28*48536ScaelAppend the output to the files rather than
29*48536Scaeloverwriting them.
30*48536Scael.It Fl i
31*48536ScaelIgnore the
32*48536Scael.Dv SIGINT
33*48536Scaelsignal.
34*48536Scael.El
35*48536Scael.Pp
36*48536ScaelThe following operands are available:
37*48536Scael.Bl -tag -width file
38*48536Scael.It file
39*48536ScaelA pathname of an input
40*48536Scael.Ar file .
41*48536ScaelIf no file operands
42*48536Scaelare specified, the standard input is used.
43*48536Scael.El
44*48536Scael.Pp
45*48536ScaelThe
46*48536Scael.Nm tee
47*48536Scaelutility takes the default action for all signals,
48*48536Scaelexcept in the event of the
49*48536Scael.Fl i
50*48536Scaeloption.
51*48536Scael.Pp
52*48536ScaelThe
53*48536Scael.Nm tee
54*48536Scaelutility exits 0 on success, and >0 if an error occurs.
55*48536Scael.Sh STANDARDS
56*48536ScaelThe
57*48536Scael.Nm tee
58*48536Scaelfunction is expected to be
59*48536Scael.Tn POSIX
60*48536Scael1003.2 compatible.
61