Note to Unix Weenies: findstr

djberg96 on 2004-09-20T15:53:19

I don't know how many times I've read "Windows doesn't have 'grep'. You'll have to write your own or, better yet, install cygwin!", or some variant thereof. In fact, I came across this again today.

Comments like this are usually then followed by a hoard of "my favorite grep clone is <insert random .bat file here>".

Before you go running to the web looking for a grep clone, just type 'findstr /?'. It even does regular expressions and recursive searches.


find ne find

jplindstrom on 2004-09-20T17:53:11

The annoying thing with find on Windows is that "find" isn't Unix find, it's something grep-like IIRC, and it's probably in your path before Cygwin by default.

unxutils

vek on 2004-09-20T18:38:15

Or just install unxutils and you'll have all your favorite Unix command line tools at your fingertips :-)