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.