|
NAMEfmt - format textSYNOPSISfmt [-v] [-l length] [-t tabs] [--] [file ... ]fmt formats text by filling lines to roughly the same length. OPTIONS
DESCRIPTIONfmt formats each file in turn, writing the result to the standard output. If no files are specified or a file is - (dash), fmt formats the standard input.fmt adjusts horizontal white space and breaks and joins lines at horizontal white space in an attempt to create output lines that are as long as possible but no longer than length columns. fmt preserves leading horizontal white space, empty lines, and lines that consist only of horizontal white space, but compresses other horizontal white space to a single space character. fmt will not break words, so extremely long words in the input may give lines that are longer than length columns in the output. fmt expects its input to be Unicode characters in utf(4) form. EXAMPLESFile file1 contains:The Unicode Standard represents its characters in 16 bits; UTF-8 represents such values in an 8-bit byte stream. Throughout this manual, UTF-8 is shortened to UTF. To reformat this to about 70 columns, enter:
fmt file1 >file2 file2 will now contain:
The Unicode Standard represents its characters in 16 bits; UTF-8 represents such values in an 8-bit byte stream. Throughout this manual, UTF-8 is shortened to UTF. SEE ALSOexpand(1) unexpand(1) utf(4)BUGSNone known.SOURCEShttp://pobox.com/~Alan.Watson/software.htmlAUTHORAlan Watson (Alan.Watson@pobox.com).
Visit the GSP FreeBSD Man Page Interface. |