Grep for Windows is FindStr

Grrr. Where’s grep when you need it on a Windows box? No, you don’t need cygwin. You just need:

findstr /?

And yes it does regular expressions. For example:

Echo "Here Is A Sentence" | Findstr /i "\<Sen[a-zA-Z]*e\>"
TaskList /v | findstr /i "Where[']sGrep.exe"
This entry was posted in Code, Computers and tagged , . Bookmark the permalink.

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>