Re: Matching ranges of IP addresses

2004-03-31 Thread John W. Krahn
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

Re: Matching ranges of IP addresses

2004-03-31 Thread Smoot Carl-Mitchell
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

RE: Matching ranges of IP addresses

2004-03-31 Thread Price, Jason (TLR Corp)
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

Re: Matching ranges of IP addresses

2004-03-31 Thread James Edward Gray II
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

Re: Matching ranges of IP addresses

2004-03-31 Thread James Edward Gray II
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 =

Re: Matching ranges of IP addresses

2004-03-31 Thread Paul Johnson
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 >

Re: Matching ranges of IP addresses

2004-03-31 Thread James Edward Gray II
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