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
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
:[EMAIL PROTECTED]]
Sent: Friday, December 14, 2001 5:36 AM
To: [EMAIL PROTECTED]
Subject: command-line way to search contents of files
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