FindKeywords [
-c] [
-a] <key1> <key2> . . .
IN <filePat1> <filePat2> . . .
Lists all of the occurences of the given keys in the given files, reported by filename and position.
-c makes the search case-sensitive.
-a makes the search not word-boundary sensitive.
Uses ACFind to do the searching, so the time is essentially independent of the number of keywords.
Example:
% FindKeywords -c PROGRAM PROC IN *.mesa *.log
Searching for 2 case-sensitive keywords in 4 files . . .
PROGRAM []<>Plass>6.0>f>FindKeywordsCommandsImpl.mesa!1|107
PROC []<>Plass>6.0>f>FindKeywordsCommandsImpl.mesa!1|227
PROC []<>Plass>6.0>f>FindKeywordsCommandsImpl.mesa!1|377
PROC []<>Plass>6.0>f>FindKeywordsCommandsImpl.mesa!1|696
PROC []<>Plass>6.0>f>FindKeywordsCommandsImpl.mesa!1|835
PROC []<>Plass>6.0>f>FindKeywordsCommandsImpl.mesa!1|1552
PROC []<>Plass>6.0>f>FindKeywordsCommandsImpl.mesa!1|2554
PROC []<>Plass>6.0>f>FindKeywordsCommandsImpl.mesa!1|2731
PROC []<>Plass>6.0>f>FindKeywordsCommandsImpl.mesa!1|2904
PROC []<>Plass>6.0>f>Compiler.log!2|1179
PROC []<>Plass>6.0>f>Compiler.log!2|1475
PROC []<>Plass>6.0>f>Compiler.log!2|1619
PROC []<>Plass>6.0>f>Compiler.log!2|1905
PROC []<>Plass>6.0>f>Compiler.log!2|2084
PROC []<>Plass>6.0>f>Compiler.log!2|2389
15 matches.
%
The file names and positions are printed in such a form that you can select one and click "Open" at the top of the screen to open the file at the given position (if you use the CommandTool open, it hits you with a lead pipe).