[olug] Unix Tip: GET YOUR IP-ADDRESS, Omaha Perl Mongers

Jeff Hinrichs jlh at cox.net
Sun Mar 23 02:14:31 UTC 2003


> Jeff Hinrichs wrote:
> > Doesn't the original tip only return a single one?
> 
> jhannah at hannibal:~$ ifconfig | grep "inet addr" |  grep -v "127.0.0.1" |
> awk '{print $2;}' |awk -F':' '{print $2;}'
> 12.144.144.44
> 12.144.144.45
... snip...
> 
cool.

-jeff


More information about the OLUG mailing list