<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
        <META HTTP-EQUIV="CONTENT-TYPE" CONTENT="text/html; charset=iso-8859-1">
        <TITLE>Re: [luau] RE: Looking for a regular expression</TITLE>
        <META NAME="GENERATOR" CONTENT="StarOffice/5.2 (Linux)">
        <META NAME="CREATED" CONTENT="20010724;22081500">
        <META NAME="CHANGEDBY" CONTENT="Ben Beeson">
        <META NAME="CHANGED" CONTENT="20010724;22090200">
</HEAD>
<BODY>
<PRE>Dusty,

        Thanks very much, I'll try that one later this week when I try my hand
a scripts again.

Ben 

>>>>>>>>>>>>>>>>>> Original Message <<<<<<<<<<<<<<<<<<

On 7/24/01, 1:40:37 PM, Dusty <dusty@sandust.com> wrote regarding
[luau] RE: Looking for a regular expression:


> A buddy of mine just sent me this little Perl line to print out your
IP addresses.  It does checking and everything.  Hank loves his perl.

> perl -n -e
"/(^|\D)([01]?\d?\d|2[0-4]\d|25[0-5])\.([01]?\d?\d|2[0-4]\d|25[0-5])\.([01]?\d?\d|2[0-4]\d|25[0-5])\.([01]?\d?\d|2[0-4]\d|25[0-5])(\D|$)/g
&& print \"$2.$3.$4.$5\n\";" /var/log/messages

> It will run through the file specified, and print each IP address it
finds to STDOUT.  You can redirect the output with > >> and | like
normal.  Note that it will only print the IP, not the whole line.


> Dusty

> ---
> You are currently subscribed to luau as: beesond001@hawaii.rr.com
> To unsubscribe send a blank email to leave-luau-436Q@list.luau.hi.net</PRE>
</BODY>
</HTML>