QFindDoc.tioga
Sweet December 5, 1985 10:51:45 am PST
QFind
-- a quick simple file search program
Richard E. Sweet
© Copyright 1985 Xerox Corporation. All rights reserved.
QFind is a file scanning program similar in spirit to Grep. It lacks most of the functionality of Grep, but makes up for it by being 3-4 times as fast. It finds only simple text keys (no regular expressions, wild cards, etc.) and has only one switch (-c) for optionally being case sensitive. Typical usage:

QFind [-c] <search key> <list of files>

If <search key> contains blanks, it must be enclosed in quotes ("). This is approximately equivalent to Grep -o [-c] <search key> <list of files>. The number of matches reported by the two programs differs in that QFind, after printing out the line containing a match, doesn't bother to look on the rest of that line for further matches.
QFind uses the Boyer-Moore sub-linear search algorithm; the longer the key, the faster the search.