Name
fmt
Synopsis
fmt [goal
[maximum
]] [files
]
Converts text to specified width by filling lines and removing
newlines. Width is specified as being close to
goal
characters, but not over
maximum
characters wide (65 and 75
characters by default). Concatenate files on the command line, or
read text from standard input if no file is specified. By default,
preserve blank lines, spacing, and indentation.
fmt
attempts to break lines at the end of
sentences and to avoid breaking lines after a
sentence’s first word or before its last.
Get Mac OS X Panther in a Nutshell, 2nd Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.