Importing usr.bin/tee
Replaces commands/tee. No Minix-specific changes needed. Change-Id: I31481facfa9cd44860bf2b59ec779605dd8d2f2d
This commit is contained in:
committed by
Gerrit Code Review
parent
fb69480b9a
commit
916b872033
+1
-1
@@ -17,7 +17,7 @@ MAN= ash.1 at.1 \
|
||||
remsync.1 rget.1 rlogin.1 rsh.1 rz.1 \
|
||||
shar.1 sleep.1 spell.1 \
|
||||
split.1 stty.1 svc.1 svrctl.1 \
|
||||
synctree.1 sysenv.1 sz.1 tail.1 tee.1 telnet.1 template.1 \
|
||||
synctree.1 sysenv.1 sz.1 tail.1 telnet.1 template.1 \
|
||||
term.1 termcap.1 tget.1 time.1 true.1 \
|
||||
truncate.1 tty.1 umount.1 uname.1 \
|
||||
uud.1 uue.1 vol.1 whereis.1 which.1 \
|
||||
|
||||
@@ -1,37 +0,0 @@
|
||||
.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
|
||||
.TP 5
|
||||
.B \-a
|
||||
# Append to the files, rather than overwriting
|
||||
.TP 5
|
||||
.B \-i
|
||||
# Ignore interrupts
|
||||
.SH EXAMPLES
|
||||
.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
|
||||
.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).
|
||||
Reference in New Issue
Block a user