Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight
 
PerlMonks  

Re: Perl and or Grep Help!

by Corion (Patriarch)
on Jan 17, 2011 at 20:28 UTC ( [id://882746]=note: print w/replies, xml ) Need Help??


in reply to Perl and or Grep Help!

To bring this back into the realm of Perl, see App::ack.

Alternatively, see find2perl to convert your find command to Perl. See grep for how to search a list, and open and perlop for how to open a file and read its contents.

Replies are listed 'Best First'.
Re^2: Perl and or Grep Help!
by FalseVinylShrub (Chaplain) on Jan 18, 2011 at 11:08 UTC

    Hi

    ++

    I was going to post about Ack too.

    ack --perl email mydirectory

    Should do what is needed.

    App::Ack can be installed through CPAN, or it's available as a package for many distros ("ack-grep" for Debian/Ubuntu, for example)

    FalseVinylShrub

    Disclaimer: Please review and test code, and use at your own risk... If I answer a question, I would like to hear if and how you solved your problem.

Log In?
Username:
Password:

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

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

    No recent polls found