RE: Find && Grep

2001-06-20 Thread Richard A. Evans
>> If I had a complex ANDed expression, I'd just hard code it in the >> subroutine. >> >> For something simple, such as the word TABLE followed somewhere by the word >> ALIGN, you could use: >> >> my $stringToFind = 'TABLE.+ALIGN'; >> >> >> Regards, >> >> Rick >Sure, if you wanted to match VEGE

RE: Find && Grep

2001-06-20 Thread erskine, michael
> > -Original Message- > > From: [EMAIL PROTECTED] > > [mailto:[EMAIL PROTECTED]]On Behalf Of > > Richard A. Evans > > Sent: Thursday, June 14, 2001 6:49 PM > > To: Sidwell, Josh; '[EMAIL PROTECTED]' > > Subject: RE: Find && G

RE: Find && Grep

2001-06-15 Thread Sidwell, Josh
If you have received this communication in error, please immediately notify Lockheed Martin IMS at [EMAIL PROTECTED] and destroy all copies of this message along with any attachments. ::-Original Message- ::From: $Bill Luebkert [mailto:[EMAIL PROTECTED]] ::Sent: Friday, June 15, 2001 9:5

Re: Find && Grep

2001-06-15 Thread $Bill Luebkert
Walter Torres wrote: > > > -Original Message- > > From: [EMAIL PROTECTED] > > [mailto:[EMAIL PROTECTED]]On Behalf Of > > $Bill Luebkert > > Sent: Thursday, June 14, 2001 6:26 PM > > Cc: Sidwell, Josh; '[EMAIL PROTECTED]' > > Subje

RE: Find && Grep

2001-06-14 Thread Richard A. Evans
I believe this snippet of code does what you ask. It finds all files containing a specific string Since it prints line number and filename as it goes, there is no need to store them, as you could capture the results. Regards, Rick Evans __BEGIN__ use strict;

Re: Find && Grep

2001-06-14 Thread $Bill Luebkert
"$Bill Luebkert" wrote: > > "Sidwell, Josh" wrote: > > > > I am trying to write a small script that will recursively search through a > > directory tree (from some arbitrary point) and return all of the files it > > finds that match an expression. I then want to grep the results for a > > specif

Re: Find && Grep

2001-06-14 Thread $Bill Luebkert
"Sidwell, Josh" wrote: > > I am trying to write a small script that will recursively search through a > directory tree (from some arbitrary point) and return all of the files it > finds that match an expression. I then want to grep the results for a > specific string in each of thos files and re