FMT

Section: User commands (1)
Updated:
Index Return to Main Contents
 

NAME

fmt - adjust line-length for paragraphs of text  

SYNOPSIS

fmt [-s] [-w width | -width] [file]...  

DESCRIPTION

fmt 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, then fmt will read from stdin.

It is typically used from within vi(1) to adjust the line breaks in a single paragraph. To do this, move the cursor to the top of the paragraph, type "!}fmt", and hit <Return>.  

OPTIONS

-w width or -width
Use a line width of width characters instead of the default of 72 characters.
-s
Don't join lines shorter than the line width to fill paragraphs.
 

SEE ALSO

vi(1)  

AUTHOR

Steve Kirkendall
kirkenda@cs.pdx.edu


 

Index

NAME
SYNOPSIS
DESCRIPTION
OPTIONS
SEE ALSO
AUTHOR

This document was created by man2html, using the manual pages.
Time: 23:41:39 GMT, February 15, 2023