dnGrep

Submit portable freeware that you find here. It helps if you include information like description, extraction instruction, Unicode support, whether it writes to the registry, and so on.
Post Reply
Message
Author
User avatar
webfork
Posts: 9371
Joined: Wed Apr 11, 2007 8:06 pm
Location: US, Texas
Contact:

dnGrep

#1 Post by webfork » Sat Mar 16, 2019 10:57 am

A dotNET-based windows search tool supporting Word, PDF, and archives (via plug in) that comes highly recommended.

Features:
Search using text, regular expressions (regex), XPath, and phonetics
Search-and-replace, including undo
Whole-file preview
Right-click to search in File Explorer
Move/copy/delete result files
Open line results in a custom editor, like Notepad++
Bookmark search patterns for later use
Try out complex searches in the Test window

Site: http://dngrep.github.io/ or https://www.softpedia.com/get/System/Fi ... GREP.shtml

License: GPLv2

Status: Untested

Image

User avatar
webfork
Posts: 9371
Joined: Wed Apr 11, 2007 8:06 pm
Location: US, Texas
Contact:

Re: dnGrep

#2 Post by webfork » Fri Oct 18, 2019 2:47 pm

Smaragdus pointed me to this program and I was initially put off by the XPath function. I just didn't want to re-learn another search syntax like Apache Lucene, but really that's just an extra feature that you can ignore.

Steps: Download, uniextract, and then move the contents of dnGREP.2.9.256.x64\dnGREP to a folder of your choice. Launch dngrep.exe.

Status: Portable. Writes to dnGREP.Settings in the application folder. Stealth: no, writes some window details "user.config" in appdata. Tested v.2.9.174 on Win10

Features:
  • Dark theme looks great
  • Searches a host of file types not normally covered by tools like this including Word and Excel
  • Not just search but also replace text
  • Able to do multi-line replacements rather than just a simple string
  • Multi-thread searching
  • Loads of options for date, size range
  • Search near-sounding words like "laser" to get words like "layer" "users" and "latest"
  • Regular expressions search functionality for Word and PDF, which isn't easy to come by
Search results features:
  • Ability to keep doing "search in results" to repeatedly refine your search
  • File operations such as delete, copy, move, and list files
  • Colorized code in results preview window
Caveats
  • All searching is manual, meaning there's no index. This can be either good or bad depending on your preference for speed vs. accuracy and resource usage.

Wishlist
  • Support for ODT/ODS files (open document format)
  • Supports for PowerPoint files
  • Preview window for PDF files (currently just shows what looks like odd binary data)
---

Related tools:
  • Nirsoft's SearchMyFiles already has a larger file support capability, but lacks some of the search features such as Regex (though it is on his todo list).
  • ByteScout's PDF Multitool will also do PDF regex searches, but is only free for personal use.

User avatar
webfork
Posts: 9371
Joined: Wed Apr 11, 2007 8:06 pm
Location: US, Texas
Contact:

Re: dnGrep

#3 Post by webfork » Fri Nov 08, 2019 6:46 pm

New update out: https://github.com/dnGrep/dnGrep/releases (v2.9.184.0)

This week I did some more testing, including a complex, multi-line find-and-replace for ~150 documents and it worked beautifully. Would really like to add to the database but, given that it's still in beta, I'll give it some more time and testing.

User avatar
webfork
Posts: 9371
Joined: Wed Apr 11, 2007 8:06 pm
Location: US, Texas
Contact:

Re: dnGrep

#4 Post by webfork » Fri Aug 28, 2020 9:51 pm

dnGrep is rapidly becoming one of the most important programs on my machine. Below is an example of a command-line function I use to check documents. This one grabs websites from inside Word files saved on my desktop. All the text below is saved to a text file, renamed to a ".bat" ending, and launched. Works great.

Code: Select all

start "" "C:\Temp\dngrep\dnGREP.exe" "C:\Users\USERNAME\Desktop\*.docx" "http[s]?://(?:[a-zA-Z]|[0-9]|[$-_@.&+]|[!*\(\),]|(?:%[0-9a-fA-F][0-9a-fA-F]))+"
(Details here: https://github.com/dnGrep/dnGrep/wiki/Command-Line | regex code from: http://urlregex.com/ (the Python bit)

A slightly different version lets me check a list of terms (e.g. you have a team member who swears a lot and don't want that ending up on the public website) by putting "|" in between the words. You may need to check "Boolean Operators"

Code: Select all

start "" "C:\Temp\dngrep\dnGREP.exe" "C:\Users\USERNAME\Desktop\*.docx" "word1|word2|phrase 1|phrase 2"
More on the regex code: : https://phoenixnap.com/kb/grep-multiple-strings

Post Reply