in reply to efficient way of searching though large number of text file in a given directory

I'd try an existing tool like grep, which is probably faster than Perl.
$ grep -l YourString directory/*
  • Comment on Re: efficient way of searching though large number of text file in a given directory
  • Download Code

Replies are listed 'Best First'.
Re^2: efficient way of searching though large number of text file in a given directory
by QM (Parson) on Dec 02, 2010 at 17:03 UTC
    Agreed. Note that egrep is faster than grep.

    -QM
    --
    Quantum Mechanics: The dreams stuff is made of