check man perlrun
im not sure what you're after, if it's just grep i'd suggest
find . -type f -exec grep foo {} \;
if you wanna do something about foo
find . -type f -exec perl -pi -e 's/foo/bar/g' {} \;
/Jon
"Thomas S. Dixon" wrote:
>
> Greetings gurus,
> I've worked with perl somewhat for the past year, but never via the
> command line. I'd like to know if there's a short command-line way to
> search a given directory (recursively) for files containing a certain
> text string. I would think this would be some combination of a loop and
> grep, but I'm not quite sure where to start. This is perl 5.6.0 running
> on a linux system.
>
> Thanks,
> Tommy
>
> --
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]