Posted by Hans-Henry Jakobsen
ifconfig eth0 | awk '/inet addr/{print $2}' | cut -d: -f2
Tags: awk, cut, ifconfig
Comments are closed.