Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Free alternative(s) to PowerGREP

Tags:

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.

like image 612
Mischa Kroon Avatar asked Jul 06 '09 09:07

Mischa Kroon


People also ask

Is PowerGREP free?

The free evaluation version can be downloaded anonymously. It allows you to explore PowerGREP for 15 days of actual use. Full documentation is included. The free evaluation version is fully functional, except for the ability to save results and libraries.

What is PowerGREP?

PowerGREP is a powerful Windows grep tool. Quickly search through large numbers of files on your PC or network, including text and binary files, compressed archives, MS Word documents, Excel spreadsheets, PDF files, OpenOffice files, etc.


2 Answers

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

like image 185
Diaa Sami Avatar answered Sep 21 '22 05:09

Diaa Sami


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

like image 39
Tim Pietzcker Avatar answered Sep 17 '22 05:09

Tim Pietzcker