Manpage logo

fmt - simple text formatter

NAME  SYNOPSIS  DESCRIPTION  OPTIONS  EXIT STATUS  BUGS  AUTHORS 

NAME

fmt − simple text formatter

SYNOPSIS

fmt [−w WIDTH] [file...]

DESCRIPTION

Reformat paragraphs of text read from the input files (or standard input if none are provided), writing to standard output. The option −WIDTH is an abbreviated form of −w DIGITS.

OPTIONS

−w DIGITS

Maximum line width. This option can be specified in shortened version, −DIGITS. The default is 75.

EXIT STATUS

The fmt utility exits 0 on success, and >0 to indicate an error

BUGS

Only ASCII text is handled correctly.

AUTHORS

Dmitri Tikhonov

This code is freely modifiable and freely redistributable under Perl's Artistic License.


Updated 2026-06-01 - jenkler.se | uex.se