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

Re: efficient way of searching though large number of text file in a given directory

by moritz (Cardinal)
on Dec 01, 2010 at 16:13 UTC ( [id://874686]=note: print w/replies, xml ) Need Help??


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

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others having an uproarious good time at the Monastery: (5)
As of 2024-04-18 06:55 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found