LOOKBIB, INDXBIB(1,C) AIX Commands Reference LOOKBIB, INDXBIB(1,C) ------------------------------------------------------------------------------- lookbib, indxbib PURPOSE Makes an inverted index. SYNTAX +------+ lookbib ---| |--- database ---| +- -n -+ indxbib --- database ---| Note: This command does not have MBCS support. DESCRIPTION The indxbib command makes an inverted index to the named databases (or files) for use by lookbib and refer. These files contain bibliographic references (or other kinds of information) separated by blank lines. A bibliographic reference is a set of lines, constituting fields of bibliographic information. Each field starts on a line beginning with a "%," followed by a key-letter, then a blank, and finally the contents of the field, which may continue until the next line starting with "%." The indxbib command is a shell script that calls /usr/lib/refer/mkey and /usr/lib/refer/inv. The first program, mkey, truncates words to 6 characters, and maps uppercase to lowercase. It also discards words shorter than 3 characters, words among the 100 most common English words, and numbers (dates) < 1900 or > 2000. These parameters can be changed; see page 4 of the refer document by Mike Lesk. The second program, inv, creates an entry file .ia, a posting file .ib, and a tag file .ic, all in the working directory. The lookbib command uses an inverted index made by indxbib to find sets of bibliographic references. It reads keywords typed after the ">" prompt on the terminal, and retrieves records containing all these keywords. If nothing matches, nothing is returned except another ">" prompt. The lookbib command will ask if you need instructions, and will print some brief information if you reply "y". It is possible to search multiple data bases, as long as they have a common index made by indxbib. In that case, only the first argument given to indxbib is specified to lookbib. Processed November 8, 1990 LOOKBIB, INDXBIB(1,C) 1 LOOKBIB, INDXBIB(1,C) AIX Commands Reference LOOKBIB, INDXBIB(1,C) If the lookbib command does not find the index files (the data base .i[abc] files), it looks for a reference file with the same name as the argument, without the suffixes. It creates a file with a .ig suffix, suitable for use with fgrep. It then uses this fgrep file to find references. This method is simpler to use, but the data base .ig file is slower to use than the data base .i[abc] files, and does not allow the use of multiple reference files. FLAG -n turns off the prompt for instructions. RELATED INFORMATION See the following commands: "refer," "addbib," "sortbib," "roffbib" and "lookbib, indxbib." Processed November 8, 1990 LOOKBIB, INDXBIB(1,C) 2