[Previous] [Contents] [Index] [Next]

Caution: This version of this document is no longer maintained. For the latest documentation, see http://www.qnx.com/developers/docs.


Format concatenated input


fmt [-w width] [-m maximum] [-] [file...]


-m maximum
The maximum line length. The default is 75 characters.
-w width
Make the lines as close to width as possible. The default width is 65 characters.
Read from standard input
The file or files to be formatted.


The fmt utility concatenates the input files, formats the output as specified by the width and maximum options, and sends the results to standard output. Non-indenting tabs are converted to spaces; tabs are used for indentation where possible. If no input files are given, fmt reads from standard input.

[Previous] [Contents] [Index] [Next]