FMT

Section: User Commands (1)
Index Return to Main Contents
 

NAME

fmt - adjust line-length for paragraphs of text  

SYNOPSIS

fmt [-width] [files]...  

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.

The default line width is 72 characters. You can override this with the -width flag. If you don't name any files on the command line, then fmt will read from stdin.

It is typically used from within vi 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>.  

AUTHOR

Steve Kirkendall
kirkenda@cs.pdx.edu


 

Index

NAME
SYNOPSIS
DESCRIPTION
AUTHOR

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