Mail from ILUG-BOM list (Non-Digest Mode)
For completeness, here's a script I just hacked together:
#!/bin/bash
if [ $# -lt 1 ]; then
DEV=""
else
DEV=$1
fi
/sbin/ifconfig $DEV | grep "inet addr" | cut -f2 -d: | cut -f1 -d' '
Works well.
Philip
PS: Anyone tried coding in Pike? OO Scripting similar to C
--
Kafka's Law:
In the fight between you and the world, back the world.
-- Franz Kafka, "RS's 1974 Expectation of Days"
_______________________________________________
Linuxers mailing list
[EMAIL PROTECTED]
http://www.ilug-bom.org.in/mailman/listinfo/linuxers