Windows Got Grep!
Nicolas Galler | November 19, 2007Well, almost.
May be old news to a lot of people, but I found out the FINDSTR utility which is installed standard on Win XP machines (probably Win 2k3 as well) has enough options to be a decent replacement to grep in the common cases. Even makes it easier for some things – for example use /S for a recursive search instead of having to build it with find.
For myself I still prefer using grep/find instead (on cygwin)… but will be useful when working on other boxes.






And this is how to do the same with powershell, pretty neat also: http://www.interact-sw.co.uk/iangblog/2006/06/03/pshfindstr