utility is a simple text formatter which reads the concatenation of input
files (or standard input if none are given) and produces on standard
output a version of its input with lines as close to the
as possible without exceeding the
to 65 and the
to 10 more than the
Alternatively, a single
parameter can be specified either by prepending a hyphen to it or by using
``fmt -w 72
``fmt 72 72
all produce identical output.
The spacing at the beginning of the input lines is preserved in the output,
as are blank lines and interword spacing.
Lines are joined or split only at white space; that is, words are never
joined or hyphenated.
The options are as follows:
Center the text, line by line.
In this case, most of the other
options are ignored; no splitting or joining of lines is done.
Try to format mail header lines contained in the input sensibly.
Format lines beginning with a
does not fill these lines, for compatibility with
Allow indented paragraphs.
flag, any change in the amount of whitespace at the start of a line
results in a new paragraph being begun.
Collapse whitespace inside lines, so that multiple whitespace
characters are turned into a single space.
(Or, at the end of a
sentence, a double space.)
(and no others) as sentence-ending characters.
By default the
sentence-ending characters are full stop
and exclamation mark
Remember that some characters may need to be
escaped to protect them from your shell.
Replace multiple spaces with tabs at the start of each output
line, if possible.
spaces will be replaced with one tab.
The default is 8.
is 0, spaces are preserved.
Assume that the input files' tabs assume
spaces per tab stop.
The default is 8.
is meant to format mail messages prior to sending, but may also be useful
for other simple tasks.
within visual mode of the
will reformat a paragraph,
evening the lines.
LANG , LC_ALL
environment variables affect the execution of
as described in