Search multiple words

English support forum

Moderators: Hacker, petermad, Stefan2, white

Post Reply
JohnQM3
Junior Member
Junior Member
Posts: 3
Joined: 2004-09-28, 09:05 UTC

Search multiple words

Post by *JohnQM3 »

Hello

I'm looking for a way to find all files that matches all the search terms like an AND relation in google.

something like:
firstword AND secondword AND thirdword

Those words can be anywhere in the document. Maybe firstword is at the beginning of the document, the secondword at the end of the document and thirdword in the middle of a sentence like thisisthethirdwordinthesentence

I tried almost any possible regular expression but it doesn't work for me. I found a good search tool called inforapid.com but I would like to do this in total commander.

Can anyone help?

Thank you
JohnQM
User avatar
djk
Power Member
Power Member
Posts: 1651
Joined: 2003-03-17, 11:33 UTC
Location: Poland
Contact:

Post by *djk »

I don't think regular expressions can help you here cause as author says in Help file on regular expressions:
(...) the program only supports searching within one line
:-(
DJK
Totally addicted to Total Commander
totalcmd.pl
en.totalcmd.pl
JohnQM3
Junior Member
Junior Member
Posts: 3
Joined: 2004-09-28, 09:05 UTC

Post by *JohnQM3 »

I don't think regular expressions can help you here cause as author says in Help file on regular expressions:
Quote:
(...) the program only supports searching within one line

That's a pitty :-(
Personally, I would like such a feature in a future release, but it's to me to decide about upcoming features.

Do any one know about a tool which can do this job and also look in RAR, ZIP, ... files?

Thanks
JohnQM
FRANCISCO J. ARRILLAGA
Junior Member
Junior Member
Posts: 13
Joined: 2003-05-12, 13:58 UTC

Post by *FRANCISCO J. ARRILLAGA »

Perhaps Agent Ransack? You can find this freeware software on:

http://www.mythicsoft.com/agentransack/pageloader.aspx?page=home

There is also a shareware version named File Locator Pro wich search on archives...
JohnQM3
Junior Member
Junior Member
Posts: 3
Joined: 2004-09-28, 09:05 UTC

Post by *JohnQM3 »

Thanks for your suggestion.

I have downloaded "Agent Ransack" and his big brother filelocator pro which can find files in compressed files like zip, rar, ....

Unfortunately those tools are line searchers and therefore will find lines that match a given criteria. Each line is searched independently of other lines. Same for total commander.

For the moment, the best tool I have found is inforapid which can be found at http://www.inforapid.de/html/english.htm

Any suggestion is very welcome.

Thanks
JohnQM
User avatar
robinsiebler
Senior Member
Senior Member
Posts: 460
Joined: 2003-03-05, 21:04 UTC

Post by *robinsiebler »

It would take some work, but you could write a Python script to do it.

You could try this: http://www.download.com/Useful-File-Utilities/3000-2248_4-10313335.html

or this: http://www.funduc.com/search_replace.htm

Both imply that you can search over multiple lines.
Robin L. Siebler
Personal License #13949
------------------------------
"Bother", said Pooh, as he deleted Windows
User avatar
Sheepdog
Power Member
Power Member
Posts: 5150
Joined: 2003-12-18, 21:44 UTC
Location: Berlin, Germany
Contact:

Post by *Sheepdog »

Search for the first word.

Feed to listbox.

[Ctrl]+[NUM+] for selecting all.

Search for the second word and check 'only search in seleced directories/files'

Feed to Listbox.

[Ctrl]+[NUM+] for selecting all.

Search for the last word and check 'only search in seleced directories/files'

feed to listbox and you've got the result.

That way you get your 'AND' search. As workaround, of course.

sheepdog
"A common mistake that people make when trying to design something
completely foolproof is to underestimate the ingenuity of complete fools."
Douglas Adams
User avatar
pdavit
Power Member
Power Member
Posts: 1529
Joined: 2003-02-05, 21:41 UTC
Location: Kavala -> Greece -> Europe -> Earth -> Solar System -> Milky Way -> Space
Contact:

Post by *pdavit »

JohnQM3 wrote:Personally, I would like such a feature in a future release, but it's to me to decide about upcoming features.
Since you just placed a feature request it IS actually your job to "decide" about upcoming features. ;)

Welcome to the forum by the way! :)
"My only reason for still using M$ Window$ as an OS is the existence of Total Commander!"
Christian Ghisler Rules!!!
User avatar
SanskritFritz
Power Member
Power Member
Posts: 3693
Joined: 2003-07-24, 09:25 UTC
Location: Budapest, Hungary

Post by *SanskritFritz »

2Sheepdog
Nice... I didn't know I can search on search results... wow.
I switched to Linux, bye and thanks for all the fish!
User avatar
solid
Power Member
Power Member
Posts: 749
Joined: 2004-08-09, 11:20 UTC

Post by *solid »

Try
http://www.funduc.com/search_replace.htm
or
http://www.powergrep.com

These are not free, but there are trial versions of both programs.
I guess there has to be similar freeware program :)
Post Reply