Annotation of researchv10dc/man/index/mkindex, revision 1.1.1.1

1.1       root        1: #!/usr/bin/rc
                      2: # creates the index used by lookman
                      3: >index
                      4: for(i in ../man[1-9]*/*.[1-9]*)
                      5:        tr 'A-Z         ' 'a-z\012\012' <$i|    # lower-case & one word per line
                      6:        gre -v '^[.'']'|                        # delete troff controls
                      7:        tr -dc 'a-z\012'|                       # delete funny chars
                      8:        sort -u|                                # remove duplicates
                      9:        comm -23 - junkwords|                   # delete noise
                     10:        sed 's@$@       '$i'@' >>index          # stick file name on end of line
                     11: sort -o index index

unix.superglobalmegacorp.com

This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.