fmt

From RaySoft

fmt fills and joins lines to produce output lines of (at most) a given number of characters.[1]

Documentation

Syntax

fmt [PARAMETER ...] [FILE ...]

Parameters

-w WIDTH, --width=WIDTH
Fill output lines up to WIDTH characters (default 75).

Examples

Scale to unit
fmt --width=50 <<EOT
Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua.
EOT

Output:

Lorem ipsum dolor sit amet, consetetur sadipscing
elitr, sed diam nonumy eirmod tempor invidunt
ut labore et dolore magna aliquyam erat, sed
diam voluptua.

References