FindKeywordsDoc.tioga
Michael Plass, October 28, 1985 1:29:24 pm PST
FindKeywords
CEDAR 6.0 — FOR INTERNAL XEROX USE ONLY
FindKeywords
Michael Plass
© Copyright 1985 Xerox Corporation. All rights reserved.
Abstract: A command for searching a collection of files for occurences of keywords from a specified set.
Created by: Michael Plass
Maintained by: Michael Plass <Plass.pa>
Keywords: keyword, search, find, ACFind
XEROX  Xerox Corporation
   Palo Alto Research Center
   3333 Coyote Hill Road
   Palo Alto, California 94304

For Internal Xerox Use Only
Commands
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).