Fmt

Fmt

The fmt command in Unix is used to format natural language text for humans to read. It has been traditionally used to reformat email messages after composition and prior to delivery. Its syntax is similar among various Unixes, but not identical. fmt attempts to break, fill and join input lines to produce globally optimal, balanced output with the lengths of each line approaching the target width as closely as possible, rather than wrapping the input lines exactly as fold (from GNU Core Utilities) does.

Read more about Fmt.