FENIX_coreutils/tee.1

39 lines
889 B
Groff
Raw Normal View History

2020-12-11 10:52:27 +00:00
.TH TEE 1
.SH NAME
tee \- write from stdin to file
.SH SYNOPSIS
.B tee
[\fB\-ai\fR]
2020-12-11 10:53:21 +00:00
[\fIfile\fR ...]
2020-12-11 10:52:27 +00:00
.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!
2020-12-11 13:28:34 +00:00
.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.
2020-12-11 10:52:27 +00:00
.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.