There is a DOS 'grep' from way back in the '80s where there was a library of
many standard UNIX comands for DOS. Each time I get a new computer the first
thing I do is download all the programs. Here is the "grep /?" response:
Name:     grep - regular expression search through files
Usage:    grep [ -vclins? ] <pattern> file1 ...
Version:  2.0 for PCs with DOS 2.1 and higher
(C) Copyright Peter Stephen Heitman 1986  --  All Rights Reserved
Distributed with the PiCnix Package (tm) by Peter Stephen Heitman
Regular expression pattern matching algorithm:
Copyright (c) 1986 by University of Toronto.
Written by Henry Spencer.  Not derived from licensed software.
The options for grep are:
-v:   print the lines that DON'T match the pattern
-c:   print a count of the number of matches in each file
-l:   print the name of each file that has a match
NOTE: options v, c and l are exclusive.  Only one of these may be selected
-i:   ignore the case of each character while matching
-n:   print the line number that the match occurred on
-s:   do not report errors encountered while opening or reading files
-?:   print this description of the program.
The 'PiCnix Package (tm)' can be downloaded from
http://sourceforge.net/project/showfiles.php?group_id=41329.
Frank