Findstr command on Windows is useful for searching for specific
text in files. This command is Windows counterpart for the Linux
command grep. You can find below the syntax of this command for
various use cases. Search for text/string in a file: findstr
/C:string filename For example, to search for the string
‘Windows’ in the text file CLItips.txt, the command would be as
below. findstr /C:Windows CLItips.txt Note that the above
command looks for exactly ‘Windows’. It considers case by
default. So if you have a line that has the word ‘windows’, it
would not be printed in the output of the above command. Ignore
text case: You can add /I switch to ignore the case in the
search. So if you run ‘findstr /C:windows /I CLItips.txt‘, it
does case insensitive pattern matching. Search for text in all
the files in a current directory You can use wildcard ‘*” to
specify that all the files in a directory should be searched for
the given string. For example, to search for ‘windows’ in all
the files in the current directory