Grep for WindowsFor Unix lovers who find themselves trapped inside a Windows command line window, you may find the findstr command useful. It functions just like grep and has many of the same options. Here are a couple of examples:
C:\>netstat -an | findstr LISTEN
C:\WINDOWS>type wmsetup.log | findstr error
C:\WINDOWS>findstr error wmsetup.logYou can get the full listing with findstr /? but some options that are the same between Windows and Unix/Linux are: /v to search for something that is not what you specified and /i to ignore case. (Not sure where that would come into play since case doesn’t usually matter in Windows, but anyway) So, yes, there is a Windows grep...sort of. |