xref: /csrg-svn/usr.bin/tee/tee.1 (revision 50210)
148536Scael.\" Copyright (c) 1991 Regents of the University of California.
248536Scael.\" All rights reserved.
319505Smckusick.\"
4*50210Sbostic.\" This code is derived from software contributed to Berkeley by
5*50210Sbostic.\" the Institute of Electrical and Electronics Engineers, Inc.
6*50210Sbostic.\"
748536Scael.\" %sccs.include.redist.roff%
848536Scael.\"
9*50210Sbostic.\"     @(#)tee.1	6.3 (Berkeley) 06/27/91
1048536Scael.\"
1148536Scael.Dd
1248536Scael.Dt TEE 1
1348536Scael.Os BSD 4.4
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
4248536ScaelA pathname of an input
4348536Scael.Ar file .
4448536ScaelIf no file operands
4548536Scaelare specified, the standard input is used.
4648536Scael.El
4748536Scael.Pp
4848536ScaelThe
4948536Scael.Nm tee
5048536Scaelutility takes the default action for all signals,
5148536Scaelexcept in the event of the
5248536Scael.Fl i
5348536Scaeloption.
5448536Scael.Pp
5548536ScaelThe
5648536Scael.Nm tee
5748536Scaelutility exits 0 on success, and >0 if an error occurs.
5848536Scael.Sh STANDARDS
5948536ScaelThe
6048536Scael.Nm tee
6148536Scaelfunction is expected to be
6248536Scael.Tn POSIX
6348536Scael1003.2 compatible.
64