25

First of all, great praise goes out to PowerGREP. It's a great program.

But it's not free. Some of its options I'm looking for:

  • Being able to use .NET regexp's (or similar) to find things in a filtered list of files through subdirectories.

  • Replacing that stuff with other regexps.

  • Being able to jump to that part of the file in some sort of editor.

  • Non commandline.

  • Being able to copy the results / filename and occurrences of the text.

  • Low overhead would also be nice, so not too many dependencies, etc.

  • And I need it on Windows.

Peter Mortensen
  • 30,738
  • 21
  • 105
  • 131
Mischa Kroon
  • 1,772
  • 1
  • 13
  • 19

8 Answers8

19

I would suggest trying the new dnGrep. It's a .NET application that provides grep-like functionality and has almost all the features you specified.

Here are the features and a sample screenshot:

  • Shell integration (ability to search from Windows Explorer)
  • Plain text/regex/XPath search (including case-insensitive search)
  • Phonetic search (using Bitap and Needleman-Wunch algorithms)
  • File move/copy/delete actions
  • Search inside archives (via plug-ins)
  • Search Microsoft Word documents (via plug-ins)
  • Search PDF documents (via plug-ins)
  • Undo functionality
  • Optional integration with a text editor (like Notepad++)
  • Bookmarks (ability to save regex searches for the future)
  • Pattern test form
  • Search result highlighting
  • Search result preview
  • Does not require installation (can be run from a USB drive)

dnGrep screenshot

Peter Mortensen
  • 30,738
  • 21
  • 105
  • 131
Diaa Sami
  • 3,249
  • 24
  • 31
14

Feature-wise nothing even comes close to PowerGREP, so the question is, how many compromises are you willing to make? I agree that PowerGREP's price tag is a bit steep (not that I have ever regretted a single penny I spent on it), so perhaps something cheaper might do?

UltraEdit is an excellent text editor with very good regex support. It supports Perl-style regular expressions, and you can do find/replace operations in multiple (optionally pre-filtered) files with it. I'd say it can do everything you want to do according to your question.

UE screenshot

RegexBuddy, apart from being the best regex editor/debugger on the market, also has a limited GREP functionality, allowing search/replace in (pre-filtered) subdirectories. It's also not free, but considerably less expensive than PowerGREP, and its regex engine has all the features you could ask for (the current version even introduced recursive regexes, and the extremely useful ability to translate regexes between flavors). Big pluses here are the ability to do a non-desctructive preview for all operations, and to have backups automatically be created of all files that are modified during a grep.

RB screenshot

Tim Pietzcker
  • 328,213
  • 58
  • 503
  • 561
  • I did wonder if Regex Buddy could be used as a poor man's PowerGrep. – alimack Sep 12 '17 at 15:33
  • Unfortunately, UltraEdit (or rather, the company behind it) is now pushing the subscription model very hard (it is ***impossible*** to find out from their descriptions whether the software will continue to work after the subscription runs out or if it is only to get access to new versions - they may do this deliberately to create some FUD). It is also [extremely buggy on Linux](https://pmortensen.eu/world2/2020/03/29/using-geany/). – Peter Mortensen Nov 21 '21 at 22:53
11

I use GrepWin extensively during development and on production servers - it doesn't support all the features you specify, but it gets the job done (your mileage may vary).

Peter Mortensen
  • 30,738
  • 21
  • 105
  • 131
Ben
  • 791
  • 6
  • 12
  • great answer, thanks, just used GrepWin to find config files only in my deploy folders, while ignoring those in Debug and Release folders, and now dragging that list of filse into Visual Studio for editing. Exactly what I needed. – Ninjanoel Mar 10 '16 at 10:25
  • grepWIn is pretty quick and it does replaces, what is lacks is a Replace window to check you results (and built in regexes), which is essential in my experience. – alimack Sep 12 '17 at 15:35
7

For a fast loading, fast executing program used to only find (no search and replace) then I've found Baregrep to be pretty good. It does subdirectories.

Peter Mortensen
  • 30,738
  • 21
  • 105
  • 131
Robert Penridge
  • 8,424
  • 2
  • 34
  • 55
4

You might have a look on this:

Open Source PowerGREP Alternatives

Currently there're six alternatives to PowerGREP.

Peter Mortensen
  • 30,738
  • 21
  • 105
  • 131
waza
  • 486
  • 9
  • 19
1

I do not know PowerGREP, but grepWin lets you search regexes in directories.

Peter Mortensen
  • 30,738
  • 21
  • 105
  • 131
schoetbi
  • 12,009
  • 10
  • 54
  • 72
  • The link seems to be broken - hangs and times out after a few minutes: *"The connection has timed out. The server at tools.tortoisesvn.net is taking too long to respond."* – Peter Mortensen Nov 21 '21 at 22:48
1

Get Cygwin for a bunch of free alternatives!
grep, sed, awk, perl, python... goes on.
But, oops! you want to stick to GUI.

I always wonder at how people wrap GUI around things like grep and get cash for that!


WinGrep seems to be free though and, yet comes with quite a punch.

Windows Grep is designed for searching plain-ASCII text files, such as program source, HTML, RTF and batch files, but it can also search binary files such as word processor documents, databases, spreadsheets and executables.

nik
  • 13,254
  • 3
  • 41
  • 57
  • 1
    Well powergrep goes far beyond a simple grep, it is compatible with several engiens, offers a complete documentation , regex libraries. – Pierre Nov 03 '11 at 08:28
0

You can get GNU grep or Gawk.

Peter Mortensen
  • 30,738
  • 21
  • 105
  • 131
ghostdog74
  • 327,991
  • 56
  • 259
  • 343