Windows Quick Tips

Grep for Windows

For 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
TCP 0.0.0.0:80 0.0.0.0:0 LISTENING
TCP 0.0.0.0:135 0.0.0.0:0 LISTENING
TCP 0.0.0.0:445 0.0.0.0:0 LISTENING