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

Jay Hannah jay at jays.net
Sun Mar 23 00:34:00 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
12.144.144.47
12.144.154.9
12.144.154.10
12.144.154.11
12.144.154.12
12.144.154.13
12.144.154.14
12.144.154.15
12.144.154.16
12.144.154.17
12.144.154.18
12.144.154.19
12.144.154.20

:)

j

Omaha Perl Mongers: http://omaha.pm.org


More information about the OLUG mailing list