FIND(DOS) UNIX System V FIND(DOS)
Name
find - searches for a specific string of text in a file or
files
Syntax
find [/v] [/c] [/n] "string" [drive:][pathname]
Description
The find command is a filter that takes as options a string
(a group of characters) and a series of filenames. After
searching the files given on the command line, find displays
any lines it has found that contain the specified string.
In your command line, this string must be enclosed in double
quotation marks.
If you do not specify a pathname, find takes input from its
standard input (usually the keyboard) and displays any lines
that contain the specified string.
The switches are:
/v Displays all lines not containing the specified string.
/c Prints only the count of lines that contain a match in
each of the files.
/n Precedes each line by its relative line number in the
file.
Examples
The following command displays all lines from a file named
pencil.ad that contain the string ``Automatic Pencil
Sharpener'':
find "Automatic Pencil Sharpener" pencil.ad
Notes
You must type double quotation marks around a string that
already has double quotation marks.
find is an external command.
FIND(DOS) (printed 8/16/89) FIND(DOS)