in reply to Searching multiple expressions in multiple Files
Please post some code. It is very hard to know what might be your problem without seeing how you are solving the problem.
Opening and closing files is very slow - one mistake people often make is to grab a string, read all 4000 files, grab another string, read all 4000 files, and so on. (1,200,000 file openings!). You can usually avoid this by reading through each file only once and saving the data you need in a hash.
How you go about reading in and saving the data depends a lot on the nature of the strings you are searching for. Are your strings whole words or sequences that can be found in the middle of words and/or spread across several words?
Best, beth
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Searching multiple expressions in multiple Files
by VinsWorldcom (Prior) on Mar 31, 2009 at 12:09 UTC | |
|
Re^2: Searching multiple expressions in multiple Files
by Anonymous Monk on Mar 31, 2009 at 13:13 UTC |