Format concatenated input


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

Runs on:

QNX Neutrino


-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.