**********************************************************************
*                              INDEX                                 *
**********************************************************************
*                  COPYRIGHT 1983 EUGENE H. MALLORY                  *
**********************************************************************
PROGRAM:
     INDEX  - Format an index or cross reference.
USAGE:
     INDEX  [<fid] [-Cn] [-H] [>fid]
FUNCTION:
    This takes a sorted output from words and generates a formatted
    index or cross reference, depending on the use of words.
    Use other than the examples below may not be useful.  INDEX
    expects the number to be col 1 to 7, the word to be in col 9
    onward.
    
    The -Cn option specifies the column width for the resultant index.
    The default is 60.
    
    The -H options displays the available options.
    
EXAMPLE:
    For a page index with a page length of 66.
    WORDS <$1 -N -L66 |SORT -C9 -U |INDEX -C29 ...
    			... |2UP -M10 -L60 -C29 -S2 |PAGE >LST:
    
    For a cross reference with line references.
    WORDS <$1 -N |SORT -C9 -U |INDEX -C29 ...
    			...|2UP -M10 -L60 -C29 -S2 |PAGE >LST:

COMMENTS:
    

        Command Line                       

___________________________________  
                                  |  
                                  |  -Cn OPTION
                                  |  
                                  |  
                                  |                  
                    ______________V______________    
 Standard Input     |                           |   Standard Output
   RAW INDEX        |                           |    FORMATTED INDEX
------------------->|           INDEX           |----------------------->
                    |                           |
                    |                           |
                    |___________________________|
