Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ fmc — Apollo

Media Vault

Software Library

Restoration Projects

Artifacts Sought

1.1; fmc (format_multi_column), revision 1.1, 81/07/01
FMC (FORMAT_MULTI_COLUMN) -- Format text into multiple columns.
usage: FMC [-C n] [-L n] [-W n] [-G n] [-D n] [pathname ...]


FORMAT

  FMC [options] [pathname ...]


  FMC reads the named files and formats them into multiple columns on standard
  output.  Each input line is placed in one column of an output line; input
  lines which are longer than the output column width are truncated.  This
  command is useful to format text which is already in the form of a column
  or list.


ARGUMENT

  pathname
  (optional)       Specify input file.  Multiple pathnames are permitted,
                   separated by blanks.
                   Default if omitted: read standard input.


OPTIONS

  The options control output format.  If no options are specified, the default
  output format is:

                   number of columns        2
                   page length             55
                   column width            60
                   gutter width             8


  -C n             Specify n columns.  Default: 2.

  -L n             Specify page length in n lines.  FMC produces output in
                   pages, but does not place separators between the pages.
                   Default: 55.

  -W n             Specify column width in n characters.  Input lines longer
                   than n characters are truncated.  Default: 60.

  -G n             Specify gutter width in n spaces.  The gutter is the space
                   between columns.  Default: 8.

  -D n             Specify display terminal as output device.  The column width
                   is set to n characters and the page size is set to 24 lines.
                   The number of columns and the gutter width are computed to
                   maximize the amount of information on the screen.
                   Default: 10.


EXAMPLE

  $ crefs sample | fmc -c 3 -w 22 -g 4

  This command line first produces a cross-referenced list of all the symbols
  in the file SAMPLE, then formats the report in a 3-column list.

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