Man page of FMT
Section: User commands (1)
Return to Main Contents
fmt - adjust line-length for paragraphs of text
This page describes the
is a simple text formatter.
It inserts or deletes newlines, as necessary, to make all lines in a
paragraph be approximately the same width.
It preserves indentation and word spacing.
If you don't name any files on the command line,
will read from stdin.
It is typically used from within
to adjust the line breaks
in a single paragraph.
To do this, move the cursor to the top of the paragraph,
type "!}fmt", and
- -w width or -width
Use a line width of width characters instead of the default
of 72 characters.
Don't join lines shorter than the line width to fill paragraphs.
Try to be smarter about crown margins.
Specifically, this tells
to expect the first line of each paragraph to have a different
indentation than subsequent lines.
If text from the first input line is wrapped onto the second output line, then
will scan ahead to figure out what indentation it should use for the second
output line, instead of reusing the first line's indentation.
- -i chars
Allow the indentation text to include any character from
in addition to spaces and tabs.
You should quote the
list to protect it from the shell.
- -C and -M
These are shortcuts for combinations of other flags.
is short for
and is useful for reformatting C/C++ comments.
is short for
and is useful for reformatting email messages.
- SEE ALSO
This document was created by
using the manual pages.
Time: 11:33:37 GMT, October 24, 2003