File: tee.1

package info (click to toggle)
multitee 3.0-5
  • links: PTS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 232 kB
  • ctags: 375
  • sloc: ansic: 1,673; makefile: 7
file content (65 lines) | stat: -rw-r--r-- 1,046 bytes parent folder | download | duplicates (6)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
.TH tee 1
.SH NAME
tee \- record input in files
.SH SYNTAX
tee
[ \fB\-ai\fI ] [ \fIfilename ] ...
.SH DESCRIPTION
.B tee
copies its input to its output (without buffering),
with records in zero or more files.
Each
.I filename
argument specifies a record file.
Any
.I filename
which does not exist is created.

.B tee
has two flags:
.TP 12
\fB\-a\fI
Append to each
.I filename
instead of truncating it.
.TP
\fB\-i\fI
Ignore the SIGINT signal.
.PP
This version of
.B tee
uses
.B multitee
to perform all input and output.
Any use of
.B tee
from the shell
can be written in terms of
.B multitee.
.SH "EXIT VALUE"
0 normally.
1 for usage messages.
3 if
.B tee
runs out of memory.
4 if
.B multitee
cannot be executed.
.SH DIAGNOSTICS
.TP
.I fatal: out of memory
.B tee
has run out of memory.
.TP
.I warning: cannot open file
Self-explanatory.
.B tee
will continue processing other files in this case.
.SH BUGS
None known.
.SH VERSION
tee version 1.0, 7/22/91.
.SH AUTHOR
Placed into the public domain by Daniel J. Bernstein.
.SH "SEE ALSO"
multitee(1)