I created a bat file using a Windows port of grep that allows me to search for strings with context search. It looks like this:
grep -C -i "%1" %2
If I invoke it like this: grep -C -i "Smith" mydoc.doc I get the exact results I am looking for:
Bruce Korn
10 Smith Street
Durham, NC
But does anyone know of a way to add the Windows Color command to the bat so that "Smith" will be displayed in green (something like "color 0F" ) added as a pipe or something like that? I just can NOT figure out how to do that (or if it's even possible)
(The grep port does not have coloring or highlighting capability)