2024-02-17 23:43:22 -07:00
|
|
|
.\" Copyright (c) 2024 DTB <trinity@trinity.moe>
|
|
|
|
.\"
|
|
|
|
.\" This work is licensed under CC BY-SA 4.0. To see a copy of this license,
|
|
|
|
.\" visit <http://creativecommons.org/licenses/by-sa/4.0/>.
|
2024-06-02 18:47:14 -06:00
|
|
|
.\"
|
2024-06-23 23:47:29 -06:00
|
|
|
.TH MM 1 2024-06-17 "Harakit X.X.X"
|
2024-02-17 23:43:22 -07:00
|
|
|
.SH NAME
|
|
|
|
mm \(en middleman
|
2024-06-02 18:47:14 -06:00
|
|
|
.\"
|
2024-06-03 23:07:19 -06:00
|
|
|
.SH SYNOPSIS
|
|
|
|
|
2024-02-17 23:43:22 -07:00
|
|
|
mm
|
2024-07-13 23:56:30 -06:00
|
|
|
.RB [ -aetu ]
|
2024-06-29 05:18:20 -06:00
|
|
|
.RB [ -i\ input ]
|
|
|
|
.RB [ -o\ output ]
|
2024-06-02 18:47:14 -06:00
|
|
|
.\"
|
2024-02-17 23:43:22 -07:00
|
|
|
.SH DESCRIPTION
|
2024-06-03 23:07:19 -06:00
|
|
|
|
2024-03-26 18:44:05 -06:00
|
|
|
Catenate input files and write them to the start of each output file or stream.
|
2024-06-02 18:47:14 -06:00
|
|
|
.\"
|
2024-02-17 23:43:22 -07:00
|
|
|
.SH OPTIONS
|
2024-06-03 23:07:19 -06:00
|
|
|
|
2024-06-04 16:11:33 -06:00
|
|
|
.IP \fB-a\fP
|
2024-07-13 23:56:30 -06:00
|
|
|
Opens outputs for appending rather than updating.
|
2024-06-04 16:11:33 -06:00
|
|
|
.IP \fB-e\fP
|
2024-03-27 00:14:34 -06:00
|
|
|
Use the standard error as an output.
|
2024-07-13 23:56:30 -06:00
|
|
|
.IP \fB-t\fP
|
|
|
|
Causes outputs to be overwritten instead of being truncated.
|
|
|
|
.IP \fB-u\fP
|
|
|
|
Ensures neither input or output will be buffered.
|
2024-06-29 05:28:23 -06:00
|
|
|
.IP \fB-i\fP\ \fIinput\fP
|
2024-06-05 23:07:15 -06:00
|
|
|
Opens a path as an input. If one or more of the input files is \(lq-\(rq or if
|
|
|
|
no inputs are specified, the standard input shall be used.
|
2024-06-29 05:28:23 -06:00
|
|
|
.IP \fB-o\fP\ \fIoutput\fP
|
2024-06-05 23:07:15 -06:00
|
|
|
Opens a path as an output. If one or more of the output files is \(lq-\(rq or if
|
|
|
|
no outputs are specified, the standard output shall be used.
|
2024-06-03 23:07:19 -06:00
|
|
|
.\"
|
2024-02-17 23:43:22 -07:00
|
|
|
.SH DIAGNOSTICS
|
|
|
|
|
2024-06-17 22:57:08 -06:00
|
|
|
If an output cannot be written to, an error occurs; however, exiting will be
|
|
|
|
deferred until writing to any other specified outputs completes.
|
2024-03-26 18:44:05 -06:00
|
|
|
|
2024-06-05 23:07:15 -06:00
|
|
|
When an error is encountered, a diagnostic message is printed and the program
|
2024-06-03 23:45:26 -06:00
|
|
|
exits with the appropriate
|
|
|
|
.BR sysexits.h (3)
|
|
|
|
status.
|
2024-06-03 23:07:19 -06:00
|
|
|
.\"
|
2024-02-17 23:43:22 -07:00
|
|
|
.SH RATIONALE
|
|
|
|
|
2024-06-03 23:45:26 -06:00
|
|
|
The
|
|
|
|
.BR cat (1p)
|
|
|
|
and
|
|
|
|
.BR tee (1p)
|
|
|
|
programs specified in POSIX together provide similar functionality. The
|
|
|
|
separation of the two sets of functionality into separate APIs seemed
|
|
|
|
unncessary.
|
2024-06-03 23:07:19 -06:00
|
|
|
.\"
|
2024-02-17 23:43:22 -07:00
|
|
|
.SH COPYRIGHT
|
|
|
|
|
2024-06-04 16:11:33 -06:00
|
|
|
Copyright \(co 2024 DTB. License AGPLv3+: GNU AGPL version 3 or later
|
2024-02-17 23:43:22 -07:00
|
|
|
<https://gnu.org/licenses/agpl.html>.
|
2024-06-03 23:07:19 -06:00
|
|
|
.\"
|
2024-02-17 23:43:22 -07:00
|
|
|
.SH SEE ALSO
|
2024-06-02 18:47:14 -06:00
|
|
|
.BR cat (1p),
|
|
|
|
.BR dd (1),
|
|
|
|
.BR dj (1),
|
|
|
|
.BR tee (1p)
|