Wonderful grep tool for windows

Wonderful grep tool for windows

Post just about everything that isn't directly related to Spring here!

Moderator: Moderators

Post Reply
User avatar
Forboding Angel
Evolution RTS Developer
Posts: 14673
Joined: 17 Nov 2005, 02:43

Wonderful grep tool for windows

Post by Forboding Angel »

Just found it today, supports regex multiline search and replace as well. It's very very good.

http://code.google.com/p/dngrep/
User avatar
zwzsg
Kernel Panic Co-Developer
Posts: 7052
Joined: 16 Nov 2004, 13:08

Re: Wonderful grep tool for windows

Post by zwzsg »

Why would Notepad++ regex not be enough for me?
User avatar
Forboding Angel
Evolution RTS Developer
Posts: 14673
Joined: 17 Nov 2005, 02:43

Re: Wonderful grep tool for windows

Post by Forboding Angel »

Because sometimes you need to sort through an entire webserver looking for a single string encompassing 100,000 files and do a multiline search and replace on those files.

Additionally, Notepad++ does not support multiline search and replace natively (although it can be added via http://www.phdesign.com.au/).
User avatar
knorke
Posts: 7971
Joined: 22 Feb 2006, 01:02

Re: Wonderful grep tool for windows

Post by knorke »

Notepad++ does not support multiline search and replace natively
use \r\n
eg "AAAA\r\nBBB" will find
AAAA
BBB
User avatar
Forboding Angel
Evolution RTS Developer
Posts: 14673
Joined: 17 Nov 2005, 02:43

Re: Wonderful grep tool for windows

Post by Forboding Angel »

Yes... knorke, I am well aware of that. In this case, a grep tool was far better suited.
User avatar
Beherith
Posts: 5145
Joined: 26 Oct 2007, 16:21

Re: Wonderful grep tool for windows

Post by Beherith »

dammit, just after I write myself a fast script to parse a mod for keywords :)
User avatar
Forboding Angel
Evolution RTS Developer
Posts: 14673
Joined: 17 Nov 2005, 02:43

Re: Wonderful grep tool for windows

Post by Forboding Angel »

Also worth mentioning, notepad++ has a limit to the amount you can put in the search box. So if you have a huge string (like I did) that you needed to search for, it would not fit.

The string I needed to search for contained 7276 characters. Far beyond the limits of Notepad++
User avatar
knorke
Posts: 7971
Joined: 22 Feb 2006, 01:02

Re: Wonderful grep tool for windows

Post by knorke »

lol your blog haz virus :shock:
User avatar
Forboding Angel
Evolution RTS Developer
Posts: 14673
Joined: 17 Nov 2005, 02:43

Re: Wonderful grep tool for windows

Post by Forboding Angel »

Nah, a customer's website (which i don't manage, I do all their in-office network stuff), fell prey to a php injection hijack. Pretty simple to remove, if you like grep that is. Tried to do it with NP++ first, and np++ laughed.

Their web guy was like "BWahh?" meaning that I'll probably be taking over that portion as well.
Post Reply

Return to “Off Topic Discussion”