in the linux world, we can always
grep a command. today i needed to be able to do the same thing in dos.
Searches for a text string in a file or files.
FIND [/V] [/C] [/N] [/I] [/OFF[LINE]] "string" [[drive:][path]filename[ ...]]
/V Displays all lines NOT containing the specified string.
/C Displays only the count of lines containing the string.
/N Displays line numbers with the displayed lines.
/I Ignores the case of characters when searching for the string.
/OFF[LINE] Do not skip files with offline attribute set.
"string" Specifies the text string to find.
Specifies a file or files to search.
If a path is not specified, FIND searches the text typed at the prompt
or piped from another command.
so, for example, if you wanted to find just the system model of a pc using
systeminfo, you would type to following:
systeminfo | find /i "system model"
it can also be used with
netstat -ano | find /i "80"