Findstr

In computing, findstr is a command in the command-line interpreters (shells) of Microsoft Windows and ReactOS. It is used to search for a specific text string in computer files.

Overview
The command sends the specified lines to the standard output device. It is similar to the  command. However, while the  command supports UTF-16,   does not. On the other hand,  supports regular expressions, which   does not. The  program was first released as part of the Windows 2000 Resource Kit under the name.

cannot search for null bytes commonly found in Unicode computer files.

Syntax
FINDSTR flags strings [drive:][path]filename[...]

Arguments:
 *   This can be any combination of flags described below.
 *   Text to be searched for.
 *   Specifies a file or files to search.

Flags:
 *   Matches pattern if at the beginning of a line.
 *   Matches pattern if at the end of a line.
 *   Uses search strings literally.
 *   Uses search strings as regular expressions.
 *   Searches for matching files in the current directory and all subdirectories.
 *   Specifies that the search is not to be case-sensitive.
 *   Prints lines that match exactly.
 *   Prints only lines that do not contain a match.
 *   Prints the line number before each line that matches.
 *   Prints only the filename if a file contains a match.
 *   Prints character offset before each matching line.
 *   Skip files with non-printable characters.
 *   Do not skip files with offline attribute set.
 *   Specifies color attribute with two hex digits. See "color /?"
 *   Reads file list from the specified file(/ stands for console).
 *   Uses specified string as a literal search string.
 *   Gets search strings from the specified file(/ stands for console).
 *   Search a semicolon delimited list of directories

Note: Following command displays the detailed help about this command: FINDSTR /?

Example
Save your running services into file _services.txt and search in this file for lines containing word "network" - case insensitive: output would be: