FIND
Home >>
MS-DOS Reference >>
Command Categories >>
Miscellaneous Commands >>
FIND
Description
Searches for a string of characters in a file or set of files
Command Syntax
FIND [/v] [/c] [/n] [/i] "string" filename
-
/v displays all the lines that do not contain the string
-
/c displays only the number of lines that contain the string. If
this is included with the /v switch, the number of lines that do not
contain the string is displayed.
-
/n displays line numbers along with lines that contain the string
-
/i ignores the case of characters (DOS 5+ only)
-
string must be enclosed in quote marks. It is treated as case sensitve
unless the /i switch is used
-
filename may be a filename or wildcard
Comments
FIND is a very basic version of a utility called GREP, which comes
from UNIX. A number of versions are available for DOS, which may be obtained
from http://www.shareware.com among
others.
Printed from the NukeSoft MS-DOS Reference. Copyright
© 1995 - 2006 Marcus Houlden