FENIX_coreutils/tee.1
2020-12-11 07:28:34 -06:00

39 lines
No EOL
889 B
Groff

.TH TEE 1
.SH NAME
tee \- write from stdin to file
.SH SYNOPSIS
.B tee
[\fB\-ai\fR]
[\fIfile\fR ...]
.SH DESCRIPTION
.B tee
copies standard input to standard output and to any files given on the command
line. It writes to files by default, clearing any existing files specified.
.SH OPTIONS
.TP
.BR \-a
Append output to files, rather than clobbering existing files.
.TP
.BR \-i
Ignore SIGINT (^C). If you use this, use Ctrl-D (^D) to send an
EOF in order to exit!
.SH EXIT STATUS
The following exit values are returned:
.TP
.BR 0
The program successfully wrote all files.
.TP
.BR 1
Could not open or create a file.
.TP
.BR 2
Failed to write to one or more files.
.SH AUTHOR
Written by Kat.
.SH COPYRIGHT
Copyright (C) 2020 The FENIX Project
.PP
This software is free software. Feel free to modify it and/or pass
it around.
.PP
This \fBtee\fR implementation is part of the fenutils package.