Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw
 
PerlMonks  

Re: How to search string in all files in directory

by svenXY (Deacon)
on Dec 10, 2008 at 13:34 UTC ( [id://729406]=note: print w/replies, xml ) Need Help??


in reply to How to search string in all files in directory

Hi,
File::Find will probably help you there, but this is something that I personally would do with grep (the Unix command). It has the -r switch for recursive searches.
Regards,
svenXY
  • Comment on Re: How to search string in all files in directory

Replies are listed 'Best First'.
Re^2: How to search string in all files in directory
by JavaFan (Canon) on Dec 10, 2008 at 14:38 UTC
    Well, considering the OP only wants files from one particular directory, he doesn't need the -r option.

    But grep is still the way to go though.

Log In?
Username:
Password:

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

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

    No recent polls found