Steve Kemp <[EMAIL PROTECTED]> writes:
> /sbin/ifconfig eth0 | grep "inet addr" | awk '{print $2}'| awk -F: '{print
> $2}'
awk can select the line and do the double split in one go:
/sbin/ifconfig eth0 | awk '($0 ~ /^ +inet addr:/) { split($2, a, ":"); print
a[2] }'
--
,''`.
: :' : Romain Francoise <[EMAIL PROTECTED]>
`. `' http://people.debian.org/~rfrancoise/
`-
--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

