3 ms·
ip addr show eth0 | awk '/inet/ { print $2 }' Will be better ;) 'inet[::space::] ' not working with ipv6 addresses.
by vasilia 10y ago
ip addr show eth0 | awk '/inet/ { print $2 }'
Will be better ;) 'inet[::space::] ' not working with ipv6 addresses.
- qwertyuiop924 10y agoI though there was a specific desire for ipv4 addrs. That's why the space was there.