fmt reads the input files and left justifies space separated words into lines
width characters or less in length and
writes the lines to the standard output. The standard input is read if
- or no files are specified. Blank lines and
interword spacing are preserved in the output. Indentation is preserved, and lines with identical indentation are joined and
justified.
fmt is meant to format mail messages prior to sending, but may also be useful for other simple tasks. For example, in
vi(1) the command :!}fmt will justify the lines in the current paragraph.