> And if you're interested in only the interface name and MAC address, pipe > that result to awk, so... > > ip -br l | awk '{print $1,$3}'
Note that the $3 won't always be a MAC address: % ip --brief link lo UNKNOWN 00:00:00:00:00:00 <LOOPBACK,UP,LOWER_UP> [...] tun0 UNKNOWN <POINTOPOINT,MULTICAST,NOARP,UP,LOWER_UP> % - Stefan