UNIX String Searching

Here you should also use the manual database, in particular, work in directory/info1/oed with file manual and issue commands like fgrep search manual. To decide what routine to use, do UNIX manual lookups, as in man grep to learn about grep, egrep, and fgrep. You can pipe results into wc to get counts. Be sure to time each command and to save the results, for each of the following:

  1. find occurrences of the string search exactly as given [Why are there fewer here than PAT finds?]
  2. find occurrences of the string search where case is ignored [Why are there still fewer here than PAT finds?]
  3. find lines where search occurs as a separate word in lower case, not as part of a longer word (e.g., searches)


fox@cs.vt.edu
Thu Oct 6 15:01:34 EDT 1994