Lookup searches a set of files, much like grep does. However, Lookup
searches by entry (by default, paragraphs) rather than by line,
respects comments (ignores matches within them), respects
\include
directives (searches the named file), and has other
options.
For details, see the documentation.
For an example application, see the uwisdom project and its README.