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"

Leave a Reply

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