ifconfig eth0|grep " inet add"|cut -d":" -f2|cut -d " " -f1 ifconfig eth0|grep " inet add"|awk -F":" '{print $2}'|awk -F " " '{print $1}' ifconfig eth0|awk -F "[:B]" 'NR==2{print $2}' ifconfig eth0|sed -n '/inet addr/p'|sed 's#.*addr:##g'|sed 's# Bc.*$##g' ifconfig eth0|sed -n 's#^.*addr:(.*) Bca.*$#1#gp'