Is there a Pattern Matching Utility like GREP in Windows?

Solution 1:

There is a command-line tool called FINDSTR that comes with all Windows NT-class operating systems (type FINDSTR /? into a Command Prompt window for more information) It doesn't support everything grep does but it might be sufficient for your needs.

Solution 2:

PowerShell (included as standard on Windows 7/2008R2, optional for XP/2003/Vista/2008) which includes the select-string cmdlet for this purpose.

Solution 3:

Grep for Windows by GnuWin Project (2014-10-02: It's outdated, see comments below)

Solution 4:

as mentioned, findstr works fine. example :

C:>dir | findstr Windows

11/06/2013 09:55 PM Windows