85 Comments
- diggergregg, on 10/11/2007, -1/+32Windows already includes a command line grep-like utility called findstr, which supports regular expression searches.
FINDSTR [/B] [/E] [/L] [/R] [/S] [/I] [/X] [/V] [/N] [/M] [/O] [/P] [/F:file]
[/C:string] [/G:file] [/D:dir list] [/A:color attributes] [/OFF[LINE]]
strings [[drive:][path]filename[ ...]]
/B Matches pattern if at the beginning of a line.
/E Matches pattern if at the end of a line.
/L Uses search strings literally.
/R Uses search strings as regular expressions.
/S Searches for matching files in the current directory and all
subdirectories.
/I Specifies that the search is not to be case-sensitive.
/X Prints lines that match exactly.
/V Prints only lines that do not contain a match.
/N Prints the line number before each line that matches.
/M Prints only the filename if a file contains a match.
/O Prints character offset before each matching line.
/P Skip files with non-printable characters.
/OFF[LINE] Do not skip files with offline attribute set.
/A:attr Specifies color attribute with two hex digits. See "color /?"
/F:file Reads file list from the specified file(/ stands for console).
/C:string Uses specified string as a literal search string.
/G:file Gets search strings from the specified file(/ stands for console).
/D:dir Search a semicolon delimited list of directories
strings Text to be searched for.
[drive:][path]filename
Specifies a file or files to search. - NetCaptive, on 02/18/2009, -0/+14http://unxutils.sourceforge.net
http://sourceforge.net/projects/unxutils
grep, egrep, wget, gawk, the list goes on... - litolist, on 10/11/2007, -0/+12http://www.cygwin.com/
- imuk, on 10/11/2007, -2/+11I've been using grep on UNIX based systems for years - cant live without it.
Found the the windows version some weeks ago. The time I've saved is impressive. - Gomek, on 10/11/2007, -0/+8Personally, I just use the one from GnuWin32. http://gnuwin32.sourceforge.net/ Most of the other GNU utilities I am used to are available there, as well.
- CaptMonkey, on 10/11/2007, -4/+11Very nice, sure is better than watching that goddamn dog stare at the ground for hours on end while waiting for the Windows search to finish.
- snlildude87, on 10/11/2007, -4/+10http://d-e-f-i-n-i-t-e-l-y.com/
- zappo1776, on 10/11/2007, -0/+6I defiantly think Jerode meant to say defiantly and not definitely.
- sacherjj, on 10/11/2007, -0/+6Why is that? Is there an easier way to search through 20 Mb of source code and find when something is done that can only be explained with a regular expression? I know Windows search can't do it.
- pumacub, on 10/11/2007, -7/+12Just use Windows PowerShell.
Probably one of the more powerful command lines I've used. - tnoy, on 10/11/2007, -0/+5http://win-bash.sourceforge.net/
http://unxutils.sourceforge.net/
the microsoft answer: http://www.microsoft.com/windowsserver2003/technologies/management/powershell/default.mspx - MioTheGreat, on 10/11/2007, -0/+5Powershell makes grep largely useless, because you're not piping around text at all. Instead, you're piping around objects.
For instance,
ls | foreach { echo $_.Name } - I can just pull the property I want from the object, without any nasty text parsing. "Name", in this case. - kooky, on 10/11/2007, -0/+5That's the first thing I thought of when I read this. I use findstr in a bunch of scripts.
- jordan314, on 10/11/2007, -1/+5Hey, that's actually really useful. Thanks!
- MioTheGreat, on 10/11/2007, -3/+7Object Oriented shells ftw. (Making grep less useful)
- Sparkster185, on 10/11/2007, -2/+6Great, but where are the other powerful tools Bash has to offer? DOS just doesn't cut it.
- flarn2006, on 10/11/2007, -1/+5Buried for being shareware (as opposed to freeware/open-source)
- ventralnet, on 10/11/2007, -2/+6There has been a DOS port of grep for a while...
http://pages.interlog.com/~tcharron/grep.html - ToonPang, on 10/11/2007, -0/+4I use Cygwin on a daily basis at work. It's a lot more powerful than just a grep command.
- Permafrost7, on 10/11/2007, -2/+5I'm not sure what features bash has, but I've just started using PowerShell (MS) and it surpasses DOS functionality by far (it even supports regex).
http://www.microsoft.com/windowsserver2003/technologies/management/powershell/default.mspx - RichGC, on 10/11/2007, -1/+4Ive used WinGrep for a long time to search multiple files, such as PHP code, as the built in XP content search is annoyingly bad.
For faster searching in WinGrep, use the 'Expert Mode' and untick 'Count Files First'.
Registration removes a small credit window that appears whenever you close WinGrep.
Also similar is http://astrogrep.sourceforge.net/ which was good, but preferred WinGrep at the time. - sebnukem, on 10/11/2007, -1/+4Any 20 year old unix tool ported to Windows feels "advanced".
- domlachowicz, on 10/11/2007, -0/+3"The program combines the power and flexibility of traditional command line grep utilities available on DOS, UNIX and other platforms with the ease of use of Microsoft Windows."
Made me chortle. Especially juxtaposed with their program's screenshot next to the text. - MioTheGreat, on 10/11/2007, -0/+3Piece of *****? Spoken like someone who has never used it. The concept of a shell that pipes around text is simply inferior to an object oriented one. Backed by the .NET framework, which has proven to be a highly reliable and robust technology, it's a superb CLI.
- boaman, on 10/11/2007, -0/+3how do you untick 'Count Files First' ? I cannot find it.
- krebcycle, on 10/11/2007, -0/+3Cygwin's grep on windows works exactly like most unix versions of grep. I'm surprised that anyone who even knows what grep is has been waiting for someone to make a windows version of it, there are many.
http://www.google.com/search?hl=en&q=grep+for+windows&btnG=Google+Search - sacherjj, on 10/11/2007, -0/+3How in the world does a version control system help you search through the current version of the source code. They are already files on your PC.
- tjrc, on 10/11/2007, -0/+3Agent Ransack rocks. It's the second thing I habitually install on a new PC, after Firefox.
- sacherjj, on 10/11/2007, -2/+5I'm impressed with the "Are You Sure You Want To Quit?" dialog. I hit the X, yes I want to quit. I thought this was not the 1990s. Do we still have those in programs with no documents to save? I might have just been working in Ubuntu too long and the programs expect me to think...
Anyhow, thanks for the link. Windows indexing hasn't worked on my laptop for a while (along with blue screens with suspends). I can use windows search. It is really fast. But never any hits. :) This is a better otption than the program I have been using. - psyjoniz, on 10/11/2007, -1/+3i was beginning to wonder if i was in the twilight zone... this is not news, folks
- rickdigger, on 10/11/2007, -0/+2I prefer Baregrep. It is a little rough around the edges, but you don't have to deal with the "find wizard" and just enter the criteria at the top of the screen.
http://www.baremetalsoft.com - zombieooo, on 10/11/2007, -0/+2Stop your Indexing Service, set its Startup Type to Manual, and use Agent Ransack.
http://www.mythicsoft.com/agentransack/ - jensguld, on 10/11/2007, -0/+2As far as I can make out, it does not do more the the free Wanyword
http://www.jensguld.esenet.dk/index.html
but of course greppers may find it worth the price. - GoneSouth, on 10/11/2007, -0/+2What toon said. cygwin's been available for years, works fabulous.
- SuperSloth, on 10/11/2007, -0/+2PowerGREP and InfoRapid Search & Replace are far, far better.
- digitalbryan, on 10/11/2007, -0/+2Just use qgrep from the windows resource kit.
- SpookyET, on 10/11/2007, -1/+3Bleah, PowerGrep is a million times better ( http://www.powergrep.com/ ).
It's companion RegexBuddy is cool too ( http://www.regexbuddy.com/ ). - Ryosen, on 10/11/2007, -0/+1I'll jack this thread by saying that I've used WinGrep for 2 years (happily registered, thankyouverymuch). It's blazingly fast and extremely useful. Window's search and indexing is a joke compared to this. It's shareware and the unregistered version is not crippled, just a small nag screen when you exit, so there's no reason not to give it a try.
Highly recommended. - MioTheGreat, on 10/11/2007, -1/+2Of course it did: Powershell. A fully object oriented, typed, .NET based CLI. Kicks the crap out of bash.... It came out around the same time as Vista. It'll be included by default in the next version of windows.
- MrCalifornia, on 10/11/2007, -0/+1I use Sadman Search to do this:
http://www.sadmansoftware.co.uk/search/index.html
Great tool, good for finding code. - RichGC, on 10/11/2007, -0/+1This should point you in the right direction :)
http://img218.imageshack.us/img218/5582/wingrepspeedqb1.png - alfisdrake, on 10/11/2007, -0/+1Shareware.
Buried as Spam. - jhaitas, on 10/11/2007, -0/+1dude... you're cutting edge
- krunk4ever, on 10/11/2007, -0/+1Was going to post this exact same message. I've been using findstr on windows machines for years as a grep replacement.
- artabon, on 01/09/2009, -0/+1Its shareware not freeware.
- PistolFred, on 10/11/2007, -0/+1For $149. PowerGrep better rock. I can buy XP pro for less than that (legitimately). If someone pays $149 for a grep tool, more power to the seller, I suppose. For me, I'll stick with the GNU version (http://gnuwin32.sourceforge.net/packages/grep.htm). The GNU win32 stuff can be a bit of a pain to install but they do a lot. (IIRC, I preferred the GNU win32 grep over that in unxutils as it had better support for Perl regexes. For example, the unxutils version wouldn't let me grep for tabs or made it tricky to do so).
- pumacub, on 10/10/2007, -0/+1I have yet to use a shell that compares to Windows PowerShell. How can you even compare a text-based shell to one in which everything is an object? And they're full .NET objects too, and the .NET class library is massive. You can load your own objects, easily create your own commands (with any .NET language), it's just a superior CLI.
- cquinnd, on 10/11/2007, -0/+1Digging for the comments more than for the link. Some very good available tools and alternatives mentioned here.
- Bisqwit, on 10/11/2007, -0/+1"Enterprise" in the title bar of the program. Marketing / hype overload alert.
No digg. - stockjones, on 10/11/2007, -0/+1There a are a ton of add on utilities for windows that do similiar grep style string searches and stuff. In fact findstr is in windows already. This kind of stuff is great if you come from a unix background and have to use windows. These type of add ons are nice but nothing new.
-
Show 51 - 83 of 83 discussions



What is Digg?
The Digg Toolbar for Firefox lets you Digg, submit content, and keep track of Digg even when you're not on the Digg site. Download the official