Poor Man’s Grep (Windows)

You can filter out text strings in Windows command prompt by piping the output to the ‘FINDSTR’ command. See below for an example:

netstat -an | findstr 192.168.1.15
TCP    192.168.1.10:1088       192.168.1.100:8080       ESTABLISHED
This entry was posted in SysAdmin, Windows. Bookmark the permalink.

2 Responses to Poor Man’s Grep (Windows)

  1. TNo Gravatar says:

    That is the coolest thing I have ever seen. What about other unix/linux piping commands?

  2. DanielNo Gravatar says:

    There may be more, but i’m blissfully unaware of them.

    That said, Windows Powershell has all sorts of fancy functionality.

Leave a Reply

Your email address will not be published. Required fields are marked *

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>