LinuxCommandLibrary

lexgrog

Find manual pages based on keywords

SYNOPSIS

lexgrog [-m|-c] [-d] [-f] [file ...]

PARAMETERS

-m
    Parse as manual page (default)

-c
    Parse as cat page (preprocessed)

-d
    Enable debug output

-f
    Parse as whatis format

DESCRIPTION

lexgrog is a utility that parses the NAME section of manual pages and whatis files. It extracts the name and short description from man pages in various formats (nroff, troff, or preprocessed). This tool is primarily used by man-db to build the whatis database for apropos and whatis commands.

CAVEATS

This is an internal tool for man-db and is rarely used directly. Output format is primarily for machine parsing.

SEE ALSO

man(1), whatis(1), apropos(1), mandb(8)

Copied to clipboard