Solaris Advanced User's Guide  Chapter 4 Searching Files  This
chapter describes how to search directories and files for
keywords and strings by using the grep command.  Searching for
Patterns With grep  To search for a particular character string
in a file, use the grep command. The basic syntax of the grep
command is:  $ grep string file  In this example, string is the
word or phrase you want to find, and file is the file to be
searched.  Note –  A string is one or more characters. A single
letter is a string, as is a word or a sentence. Strings can
include blank spaces, punctuation, and invisible (control)
characters.  For example, to find Edgar Allan Poe's telephone
extension, type grep, all or part of his name, and the file
containing the information:  $ grep Poe extensions Edgar Allan
Poe     x72836  Note that more than one line might match the
pattern you give.  $ grep Allan extensions David Allan
x76438 Edgar Allan Poe     x72836 $ grep Al extensions Louisa
May Alcott   x74236 David Allan