summaryrefslogtreecommitdiff
path: root/static/unix-v10/man1/fmt.1
blob: 470951f530634d0cd3fe2f32a449c017774d70ae (plain)
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
.TH FMT 1
.CT 1 writing_other
.SH NAME
fmt \(mi ultra-simple text formatter
.SH SYNOPSIS
.B fmt
[
.I option ...
]
[
.I file ...
]
.SH DESCRIPTION
.I Fmt
copies the given
.I files
(standard input by default)
to its standard output, filling and indenting lines.
The options are
.TP
.BI -l " n
Output line length is
.I n,
including indent, (default 70).
.TP
.BI -i " n
Indent
.I n
spaces (default 0).
.PP
Empty lines and initial white space in input lines are preserved.
Empty lines are inserted between input files.
.PP
.I Fmt
is idempotent: it leaves already formatted text unchanged.
.SH BUGS
Words longer than 256 characters are split.