Manual page for fmt(1)
fmt - simple text formatters
-w width | -width
is a simple text formatter that fills and joins lines
to produce output lines of (up to) the number of characters
specified in the
listed as arguments.
If none are given,
formats text from the standard input.
Blank lines are preserved in the output, as is the
spacing between words.
does not fill lines beginning with a `.' (dot),
for compatibility with
Nor does it fill lines starting with
Indentation is preserved in the output, and input lines with differing
indentation are not joined (unless
can also be used as an in-line text filter for
reformats the text between the cursor location and the end of
Crown margin mode.
Preserve the indentation of the first two lines within a
paragraph, and align the left
margin of each subsequent line with that of the second line.
This is useful for tagged paragraphs.
Split lines only.
Do not join short lines to form longer ones.
This prevents sample lines of code, and other such formatted text,
from being unduly combined.
- -w width | -width
Fill output lines to up to
If any of the
LC_CTYPE, LC_MESSAGES, LC_TIME, LC_COLLATE, LC_NUMERIC,
are not set in the environment, the operational behavior of
for each corresponding locale category is
determined by the value of the
environment variable. If
is set, its contents are used to override both the
and the other
variables. If none of the above
variables is set in the environment, the "C" (U.S. style)
locale determines how
handles characters. When
is set to a valid value,
can display and handle text and filenames containing
valid characters for that locale.
can display and handle Extended Unix Code (EUC) characters
where any individual character can be 1, 2, or 3 bytes wide.
can also handle EUC characters of 1, 2, or more column widths.
In the "C" locale, only characters from ISO 8859-1 are valid.
option is acceptable for
compatibility, but it may go away in future releases.
Created by unroff & hp-tools.
© by Hans-Peter Bischof. All Rights Reserved (1997).
Last modified 21/April/97