Beefy Boxes and Bandwidth Generously Provided by pair Networks
Come for the quick hacks, stay for the epiphanies.
 
PerlMonks  

Re: Searching local files

by Sioln (Sexton)
on Jan 13, 2006 at 13:50 UTC ( [id://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?Last hourOther CB clients
Other Users?
Others studying the Monastery: (2)
As of 2024-04-26 01:33 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found