Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ crefs — Apollo

Media Vault

Software Library

Restoration Projects

Artifacts Sought

1.1; crefs (cross_reference_symbols), revision 1.1, 81/07/01.
CREFS (CROSS_REFERENCE_SYMBOLS) -- Cross reference symbols in one or more files.
usage: CREFS [-F] [pathname ...]


FORMAT

  CREFS [-F] [pathname ...]


  CREFS produces a cross-referenced list of the symbols in each of the named
  files, and writes each list to standard output. A symbol is a string of
  letters and digits, underscores and dollar signs and must begin with a
  letter. The list contains every symbol in the file in alphabetical order,
  followed by the numbers of the lines in which the symbol appears.

  Symbols of more than 32 characters are truncated.


ARGUMENT

  pathname
  (optional)       Specify input file.  Multiple pathnames and wildcarding are
                   permitted: separate names with blanks.
                   Default if omitted: read text from standard input.


OPTION

  If the option is not specified, CREFS treats uppercase and lowercase letters as
  different characters, and places uppercase letters before lowercase letters
  in the alphabetical sort.

  -F               Treat all input text as lowercase while cross referencing.

  CREFS uses the command line parser, and so also accepts the standard command
  options listed in HELP CL.


EXAMPLE

  To find all occurrences of certain variables in the program "cycle," type:

    $ crefs cycle

  CREFS can also be used in conjunction with other commands to produce more
  refined results.  For instance:

    $ crefs cycle | tee cycle.all | fpat wheel spoke axle >cycle.some

  The output file "cycle.all" contains a list of all the symbols in the program,
  with references to the line containing them.  The output file "cycle.some"
  contains only the lines with references to the three variables named:
  wheel, spoke, and axle.

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