> Here is what I have so far... > > #!/bin/bash > > IPADDR=`ifconfig -a eth0 | grep "inet addr"` > > echo ${IPADDR#"inet addr:"*" "} IPADDR=`ifconfig -a eth0 | grep "inet addr"` IPADDR2=${IPADDR#*:} IPADDR=${IPADDR2%% *} echo $IPADDR Just one way to do it. Let me know if you want to see others. :-)] - BS