minix/man/man1/tee.1

38 lines
582 B
Groff
Raw Normal View History

2005-05-02 15:01:42 +02:00
.TH TEE 1
.SH NAME
tee \- divert stdin to a file
.SH SYNOPSIS
\fBtee\fR [\fB\-ai\fR] \fIfile\fR ...\fR
.br
.de FL
.TP
\\fB\\$1\\fR
\\$2
..
.de EX
.TP 20
\\fB\\$1\\fR
# \\$2
..
.SH OPTIONS
2012-03-31 23:44:29 +02:00
.TP 5
.B \-a
# Append to the files, rather than overwriting
.TP 5
.B \-i
# Ignore interrupts
2005-05-02 15:01:42 +02:00
.SH EXAMPLES
2012-03-31 23:44:29 +02:00
.TP 20
.B cat file1 file2 | tee x
# Save and display two files
.TP 20
.B pr file | tee x | lp
# Save the output of \fIpr\fP on \fIx\fP
2005-05-02 15:01:42 +02:00
.SH DESCRIPTION
.PP
.I Tee
copies \fIstdin\fR to standard output.
It also makes copies on all the files listed as arguments.
.SH "SEE ALSO"
.BR cat (1).