To find matching text in a file, when you are working in a Windows command prompt, you can use the findstr command:
findstr "search string" c:\some\path\foo.txt
If you want to send the output to a file you can use the '>' operator.
findstr "search string" c:\some\path\foo.txt > output.txt
Comments