1*916b8720SThomas Cort.\" $NetBSD: tee.1,v 1.7 2003/08/07 11:16:07 agc Exp $ 2*916b8720SThomas Cort.\" 3*916b8720SThomas Cort.\" Copyright (c) 1991, 1993 4*916b8720SThomas Cort.\" The Regents of the University of California. All rights reserved. 5*916b8720SThomas Cort.\" 6*916b8720SThomas Cort.\" This code is derived from software contributed to Berkeley by 7*916b8720SThomas Cort.\" the Institute of Electrical and Electronics Engineers, Inc. 8*916b8720SThomas Cort.\" 9*916b8720SThomas Cort.\" Redistribution and use in source and binary forms, with or without 10*916b8720SThomas Cort.\" modification, are permitted provided that the following conditions 11*916b8720SThomas Cort.\" are met: 12*916b8720SThomas Cort.\" 1. Redistributions of source code must retain the above copyright 13*916b8720SThomas Cort.\" notice, this list of conditions and the following disclaimer. 14*916b8720SThomas Cort.\" 2. Redistributions in binary form must reproduce the above copyright 15*916b8720SThomas Cort.\" notice, this list of conditions and the following disclaimer in the 16*916b8720SThomas Cort.\" documentation and/or other materials provided with the distribution. 17*916b8720SThomas Cort.\" 3. Neither the name of the University nor the names of its contributors 18*916b8720SThomas Cort.\" may be used to endorse or promote products derived from this software 19*916b8720SThomas Cort.\" without specific prior written permission. 20*916b8720SThomas Cort.\" 21*916b8720SThomas Cort.\" THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND 22*916b8720SThomas Cort.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 23*916b8720SThomas Cort.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 24*916b8720SThomas Cort.\" ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE 25*916b8720SThomas Cort.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 26*916b8720SThomas Cort.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 27*916b8720SThomas Cort.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 28*916b8720SThomas Cort.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 29*916b8720SThomas Cort.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 30*916b8720SThomas Cort.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 31*916b8720SThomas Cort.\" SUCH DAMAGE. 32*916b8720SThomas Cort.\" 33*916b8720SThomas Cort.\" @(#)tee.1 8.1 (Berkeley) 6/6/93 34*916b8720SThomas Cort.\" 35*916b8720SThomas Cort.Dd June 6, 1993 36*916b8720SThomas Cort.Dt TEE 1 37*916b8720SThomas Cort.Os 38*916b8720SThomas Cort.Sh NAME 39*916b8720SThomas Cort.Nm tee 40*916b8720SThomas Cort.Nd pipe fitting 41*916b8720SThomas Cort.Sh SYNOPSIS 42*916b8720SThomas Cort.Nm 43*916b8720SThomas Cort.Op Fl ai 44*916b8720SThomas Cort.Op Ar file ... 45*916b8720SThomas Cort.Sh DESCRIPTION 46*916b8720SThomas CortThe 47*916b8720SThomas Cort.Nm 48*916b8720SThomas Cortutility copies standard input to standard output, 49*916b8720SThomas Cortmaking a copy in zero or more files. 50*916b8720SThomas CortThe output is unbuffered. 51*916b8720SThomas Cort.Pp 52*916b8720SThomas CortThe following options are available: 53*916b8720SThomas Cort.Bl -tag -width Ds 54*916b8720SThomas Cort.It Fl a 55*916b8720SThomas CortAppend the output to the files rather than 56*916b8720SThomas Cortoverwriting them. 57*916b8720SThomas Cort.It Fl i 58*916b8720SThomas CortIgnore the 59*916b8720SThomas Cort.Dv SIGINT 60*916b8720SThomas Cortsignal. 61*916b8720SThomas Cort.El 62*916b8720SThomas Cort.Pp 63*916b8720SThomas CortThe following operands are available: 64*916b8720SThomas Cort.Bl -tag -width file 65*916b8720SThomas Cort.It file 66*916b8720SThomas CortA pathname of an output 67*916b8720SThomas Cort.Ar file . 68*916b8720SThomas Cort.El 69*916b8720SThomas Cort.Pp 70*916b8720SThomas CortThe 71*916b8720SThomas Cort.Nm 72*916b8720SThomas Cortutility takes the default action for all signals, 73*916b8720SThomas Cortexcept in the event of the 74*916b8720SThomas Cort.Fl i 75*916b8720SThomas Cortoption. 76*916b8720SThomas Cort.Pp 77*916b8720SThomas CortThe 78*916b8720SThomas Cort.Nm 79*916b8720SThomas Cortutility exits 0 on success, and \*[Gt]0 if an error occurs. 80*916b8720SThomas Cort.Sh STANDARDS 81*916b8720SThomas CortThe 82*916b8720SThomas Cort.Nm 83*916b8720SThomas Cortfunction is expected to be 84*916b8720SThomas Cort.Tn POSIX 85*916b8720SThomas Cort.St -p1003.2 86*916b8720SThomas Cortcompatible. 87