Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation
 
PerlMonks  

Re: Searching local files

by Sioln (Sexton)
on Jan 13, 2006 at 13:50 UTC ( #522978=note: print w/replies, xml ) Need Help??


in reply to Searching local files

Sorry, I don't trully understand the question.

But the asnwer is the same :) Use DB, build index on the files, content and use SQL:LIKE to extract.

HINT:
TABLE STRUCTURE:
ID(PRIMARY KEY,LONG)
FILE_NAME(TEXT)
STR_NUMBER(LONG) # - STRING NUMBER IN FILE
STR_DATA(TEXT) # - STRING STR_NUMBER FROM FILE_NAME

AND SQL: SELECT FILE_NAME, STR_NUMBER FROM TABLE WHERE (place UCASE here if DB casedependent)STR_DATA LIKE %REGEXP_HERE%

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://522978]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (2)
As of 2023-09-23 18:14 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?