$ cat "

Quick Tip: Grep Equivalent for Windows

"

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
Written by Erik Öjebo 2012-10-23 10:28

    Comments