vordan
7/16/2015 - 5:39 AM

Show IP address only in Linux

Show IP address only in Linux

ip addr show tun0 | grep "inet\b" | awk '{print $2}' | cut -d/ -f1