Museum

Home

Lab Overview

Retrotechnology Articles

⇒ Online Manual

Media Vault

Software Library

Restoration Projects

Artifacts Sought

10.0;fmt (format_text), revision 1.0, 88/01/21
fmt (format_text) -- Format a text file.
usage: fmt [pathname ...] [-f n] [-t n] [-s] [-po n]
                        [-lf]
                        [-out pathname]



DESCRIPTION
     fmt is a general purpose text-formatting program, allowing you to arrange
     output text according to formatting directives embedded in the input file
     or typed on standard input.

     By default, formatted text is written to standard output.  You can use
     the -out option to redirect it to a file.


ARGUMENTS
     pathname (optional)
                    Specify input file to be formatted.  This argument must
                    precede any command line options.  Multiple pathnames and
                    wildcarding are permitted; however, fmt concatenates
                    multiple files prior to formatting.  If fmt cannot find
                    one of the specified input files, control shifts to
                    standard input.

                    Default if omitted:  read standard input

OPTIONS
     -f n           Begin output at the first page numbered n.

     -t n           Terminate output at the first page numbered higher than n.

     -s             Stop before printing each page, including the first.  This
                    option is useful for paper manipulation.  The prompt "Type
                    return to begin a page" is issued only once, before the
                    first page.

     -po n          Page offset. Shift the entire document n spaces to the
                    right.

     -lf            List names of files as they are processed.

     -out pathname  Specify output file.  If this option is omitted, formatted
                    text is written to standard output.

EXAMPLES
     Format mary with a page offset of 9 spaces, and write the results to
     mary.formatted.

     $ fmt mary -out mary.formatted -po 9



SEE ALSO
     More information is available.  Type

     help  fmt commands  For a summary of fmt formatting directives

Typewritten Software • bear@typewritten.org • Edmonds, WA 98026