156 B
156 B
ip_device=$(ip addr show | grep -w 'inet' | grep -v '127.0.0.1' | grep -E 'eth0|enp0s3|wlp2s0' | head -n 1 | awk '{print $2}' | cut -d'/' -f1)
ip_device=$(ip addr show | grep -w 'inet' | grep -v '127.0.0.1' | grep -E 'eth0|enp0s3|wlp2s0' | head -n 1 | awk '{print $2}' | cut -d'/' -f1)