Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?
 
PerlMonks  

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

by Anonymous Monk
on Dec 01, 2010 at 16:32 UTC ( [id://874689]=note: print w/replies, xml ) Need Help??


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

You can also use grep, using e.g. the qx// feature, and read that output as the way of identifying those files that you might need to explore further.

You can do a lot of useful things in a Unix-shell environment by “piping” together these very useful commands:

  • grep
  • xargs
  • awk
  • perl (of course)

I put perl in that list, not for humor’s sake, but to point out that Perl doesn’t have to be front-and-center in whatever approach you take.   You can get a lot of very useful work done very fast by “stitching together” existing tools, sometimes eliminating the need to write a single program to do it.

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

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others browsing the Monastery: (1)
As of 2024-04-25 04:08 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found