ip -4 address show | grep inet | grep -v 127.0.0 | awk '{print $2}' | cut -d'/' -f1
ip -6 address show | grep inet6 | awk '{print $2}' | cut -d'/' -f1
ip -4 address show | grep inet | grep -v 127.0.0 | awk '{print $2}' | cut -d'/' -f1
ip -6 address show | grep inet6 | awk '{print $2}' | cut -d'/' -f1