[plug] getting IP address in a shell script
Craig Ringer
craig at postnewspapers.com.au
Tue Jul 30 18:50:30 WST 2002
> ifconfig ppp0 | grep inet | cut -d : -f 2 | cut -d \ -f 1
Thanks. I thought there might be some nice program like "getip" but
sadly no... ah well better this than awk.
--
Craig Ringer
GPG Key Fingerprint: AF1C ABFE 7E64 E9C8 FC27 C16E D3CE CDC0 0E93 380D
-- if it ain't broke, add features 'till it is. (or:)
while (! broken) { features ++ ; broken = isBroken(features) }
More information about the plug
mailing list