Projects need to use
/sbin/ifconfig eth0 | awk '/inet/ {print $2}' | cut -f2 -d ":" |awk 'NR==1 {print $1}'
Prints eth0 ip address
Reproduced in: https: //my.oschina.net/duplicatedcode/blog/144370
Projects need to use
/sbin/ifconfig eth0 | awk '/inet/ {print $2}' | cut -f2 -d ":" |awk 'NR==1 {print $1}'
Prints eth0 ip address
Reproduced in: https: //my.oschina.net/duplicatedcode/blog/144370