xref: /csrg-svn/usr.bin/tee/tee.1 (revision 62303)
1*62303Sbostic.\" Copyright (c) 1991, 1993
2*62303Sbostic.\"	The Regents of the University of California.  All rights reserved.
319505Smckusick.\"
450210Sbostic.\" This code is derived from software contributed to Berkeley by
550210Sbostic.\" the Institute of Electrical and Electronics Engineers, Inc.
650210Sbostic.\"
748536Scael.\" %sccs.include.redist.roff%
848536Scael.\"
9*62303Sbostic.\"     @(#)tee.1	8.1 (Berkeley) 06/06/93
1048536Scael.\"
1148536Scael.Dd
1248536Scael.Dt TEE 1
1350660Scael.Os
1448536Scael.Sh NAME
1548536Scael.Nm tee
1648536Scael.Nd pipe fitting
1748536Scael.Sh SYNOPSIS
1848536Scael.Nm tee
1948536Scael.Op Fl ai
2048536Scael.Op Ar file ...
2148536Scael.Sh DESCRIPTION
2248536ScaelThe
2348536Scael.Nm tee
2448536Scaelutility copies standard input to standard output,
2548536Scaelmaking a copy in zero or more files.
2648536ScaelThe output is unbuffered.
2748536Scael.Pp
2848536ScaelThe following options are available:
2948536Scael.Bl -tag -width Ds
3048536Scael.It Fl a
3148536ScaelAppend the output to the files rather than
3248536Scaeloverwriting them.
3348536Scael.It Fl i
3448536ScaelIgnore the
3548536Scael.Dv SIGINT
3648536Scaelsignal.
3748536Scael.El
3848536Scael.Pp
3948536ScaelThe following operands are available:
4048536Scael.Bl -tag -width file
4148536Scael.It file
4250479SbosticA pathname of an output
4348536Scael.Ar file .
4448536Scael.El
4548536Scael.Pp
4648536ScaelThe
4748536Scael.Nm tee
4848536Scaelutility takes the default action for all signals,
4948536Scaelexcept in the event of the
5048536Scael.Fl i
5148536Scaeloption.
5248536Scael.Pp
5348536ScaelThe
5448536Scael.Nm tee
5548536Scaelutility exits 0 on success, and >0 if an error occurs.
5648536Scael.Sh STANDARDS
5748536ScaelThe
5848536Scael.Nm tee
5948536Scaelfunction is expected to be
6048536Scael.Tn POSIX
6150660Scael.St -p1003.2
6250660Scaelcompatible.
63