Looking for a regular expression

Ray Strode halfline at hawaii.rr.com
Tue Jul 24 00:15:26 PDT 2001


Looking for a regular expression> I'm looking for a regular expression that will fetch IP addresses
from a file such as
> /var/log/messages etc. So far, I have a start, it looks like this:
something like
$ cat /var/log/messages | sed -n -e "s/^.*IP //g" -n -e "s/ on.*//p"

should probably work

--Ray Strode



More information about the LUAU mailing list