'grep' for Windows?

4

What is the best, free, grep application for use with Windows instead of Linux?

l--''''''---------''''''''''''

Posted 2010-08-09T17:42:27.613

Reputation: 713

findstr is an alternative and comes with windows. – None – 2010-08-09T17:45:55.870

possible duplicate of Unicode grep for Windows

– akira – 2012-04-06T20:12:58.447

Answers

6

You could also download Cygwin, which has a full Unix-style toolkit, including grep, AWK, and all the servers.

Rich Homolka

Posted 2010-08-09T17:42:27.613

Reputation: 27 121

I understand that all of Cygwin can sound intimidatingly heavyweight to some Windows developers, but I have to say: If you aren't using this set of unixy command-line tools, even on your Windows projects, you are stunting your development as a programmer. The reason they are 40 years old but still thriving is that they are simply the best tool for many jobs, and smart people will still be using them to solve difficult problems 40 years from now. How many other technologies could remotely come close to claiming the same thing? – Jonathan Hartley – 2012-06-08T12:14:46.513

5

Either use Grep for Windows or the findstr command suggested by Moron.

Tamara Wijsman

Posted 2010-08-09T17:42:27.613

Reputation: 54 163

3

http://unxutils.sourceforge.net/ has a bunch of GNU tools ported to Windows.

Nathan O'Sullivan

Posted 2010-08-09T17:42:27.613

Reputation: 316

2

Newer versions of Windows include a built-in grep, called findstr. It'll do just about whatever you need. For example

C:\>findstr /I windows c:\boot.ini
default=multi(0)disk(0)rdisk(0)partition(1)\WINDOWS
multi(0)disk(0)rdisk(0)partition(1)\WINDOWS="Microsoft Windows XP Professio
nal" /fastdetect /NOEXECUTE=ALWAYSON

For more info, just run findstr /? on a command prompt.

Aaron

Posted 2010-08-09T17:42:27.613

Reputation: 21

0

I know this has been dormant, but I don't see very many options listed. I just came across AstroGrep referenced by twlichty at How to search inside files... and it works fine for me. As to "best", I think that is subjective, but I prefer command line grep and this is a GUI tool, but my preference is not enough to keep me looking...

sage

Posted 2010-08-09T17:42:27.613

Reputation: 873

0

FART provides some of the functionality of grep, depends on your requirements but I recommend you take a look:

http://fart-it.sourceforge.net/

Wrhector

Posted 2010-08-09T17:42:27.613

Reputation: 1

3How are we supposed to take that seriously? – Peter Mortensen – 2012-04-06T22:06:59.583