8 Nov
2001
8 Nov
'01
13:11
"Joe & Sesil Morris (NTM)"
/sbin/ifconfig | grep inet | grep -v 127.0 | grep -v inet6 | cut -f2 -d: | cut -f1 -d" "
A shorter pipe may be more effective, e.g. for eth0: /sbin/ifconfig eth0 | awk -F '[: ]+' '/inet addr:/ {print $4;}' -- Alexandr.Malusek@imv.liu.se