You are here

grepWin Portable How To?

6 posts / 0 new
Last post
trust
Offline
Last seen: 4 years 6 months ago
Joined: 2009-09-29 19:54
grepWin Portable How To?

Nice app, but as any normal Windows app, it comes without any decent documentation, whatsoever. So I have to ask:

I have a bunch of text files in a directory and I want to find the files which has 2 words, say, 'apple' and 'orange' in it, not necessarily next to each other, but somewhere in the file contains both words. How to proceed finding these files with grepWin?

vf2nsr
vf2nsr's picture
Offline
Last seen: 8 years 1 month ago
Developer
Joined: 2010-02-13 17:10
not sur eif you checked?

“Be who you are and say what you feel because those who mind don't matter and those who matter don't mind.” Dr. Seuss

trust
Offline
Last seen: 4 years 6 months ago
Joined: 2009-09-29 19:54
Sure, I checked it. Unix has

Sure, I checked it. Unix has good documentation and I have to say this one is very far from it.

The bottom line is: did you happen to figured out the answer to my specific question? Thanks!

Midknyte
Offline
Last seen: 3 years 4 months ago
Joined: 2009-04-22 13:56
Need to learn to code with regex

Unfortunately, it's not just clicking a few buttons here and there. You'll have to learn to code with regular expressions. I'm not very good with regex either, but I think this will do a two word search.

In the Search area, make sure that "Text search" is selected.
Enter the following in the "Search for:" field:
(?=.*\bapple\b)(?=.*\borange\b)
Click Search

That should look for files that contain apple and orange.

trust
Offline
Last seen: 4 years 6 months ago
Joined: 2009-09-29 19:54
Yeah, I know RegEx is a thing

Yeah, I know RegEx is a thing. I just wonder why the GUI, grepWIN in the first place? Rather, I could just use proper Linux command line or at least https://portableapps.com/node/35692 at least it (might?) have proper documentation in the form of man pages.

Thanks for the tip!

Midknyte
Offline
Last seen: 3 years 4 months ago
Joined: 2009-04-22 13:56
Cygwin is a beast and it can

Cygwin is a beast and it can be finicky. Not worth it for just searches. I don't see how that makes searches any easier. You can save your search presets in GrepWin also.

Log in or register to post comments