James Edward Gray II wrote:
>
> On Mar 31, 2004, at 3:09 PM, James Edward Gray II wrote:
>
> > On Mar 31, 2004, at 3:02 PM, James Edward Gray II wrote:
> >
> >> On Mar 31, 2004, at 2:50 PM, Price, Jason (TLR Corp) wrote:
> >>
> >>> I am working on a script that searches through a log file, lookin
On Wed, 31 Mar 2004 23:09:28 +0200
Paul Johnson <[EMAIL PROTECTED]> wrote:
> On Wed, Mar 31, 2004 at 02:50:30PM -0600, Price, Jason (TLR Corp)
> wrote:
>
> > I am working on a script that searches through a log file, looking
> > for IP matches based on several ranges of IPs. I'm trying to find a
Thanks to both James and Paul - that solution worked great.
Thanks!
Jason
-Original Message-
From: James Edward Gray II [mailto:[EMAIL PROTECTED]
Sent: Wednesday, March 31, 2004 3:17 PM
To: Perl Beginners
Cc: Price, Jason (TLR Corp)
Subject: Re: Matching ranges of IP addresses
On Mar
On Mar 31, 2004, at 3:09 PM, James Edward Gray II wrote:
On Mar 31, 2004, at 3:02 PM, James Edward Gray II wrote:
On Mar 31, 2004, at 2:50 PM, Price, Jason (TLR Corp) wrote:
I am working on a script that searches through a log file, looking
for IP matches based on several ranges of IPs. I'm tr
On Mar 31, 2004, at 3:02 PM, James Edward Gray II wrote:
On Mar 31, 2004, at 2:50 PM, Price, Jason (TLR Corp) wrote:
I am working on a script that searches through a log file, looking
for IP matches based on several ranges of IPs. I'm trying to find a
way to do something like this:
@results =
On Wed, Mar 31, 2004 at 02:50:30PM -0600, Price, Jason (TLR Corp) wrote:
> I am working on a script that searches through a log file, looking for
> IP matches based on several ranges of IPs. I'm trying to find a way
> to do something like this:
>
> @results = grep /192.168.0.[192-254]/, @list
>
On Mar 31, 2004, at 2:50 PM, Price, Jason (TLR Corp) wrote:
I am working on a script that searches through a log file, looking for
IP matches based on several ranges of IPs. I'm trying to find a way
to do something like this:
@results = grep /192.168.0.[192-254]/, @list
@results = grep m/192.1