> I would like the script to do the following:
> 1) List all *.java files containing following patterns:
>double, parseDouble
Sounds to me like you don't need to resort to perl yet with this problem...
egrep -rHis '\bdouble\b|\bparsedouble\b' /path/to/dir/
--
To unsubscribe, e-mail: [EMAIL
Danny Fang wrote:
> Hi
> I'm a newbie in PERL and wish to seek some help with regards to
> pattern matching PERL and grep.
Hi, and welcome.
First, "perl" is the interpreter for the "Perl" language.
"PERL" is considered gauche. :~)
>
> I would like the script to do the following:
[ snip spec
: Danny Fang [mailto:[EMAIL PROTECTED]
Sent: Wed 1/19/2005 8:53 AM
To: beginners@perl.org
Subject: PERL with grep
Hi
I'm a newbie in PERL and wish to seek some help with regards to pattern
matching PERL and grep.
I would like the script to do the following:
1) List all *.java files cont
Hi
I'm a newbie in PERL and wish to seek some help with regards to pattern
matching PERL and grep.
I would like the script to do the following:
1) List all *.java files containing following patterns:
double, parseDouble
2) Within such files, list all variables and declared as type "double"