On Fri, Jan 31, 2020 at 10:25:44AM +0000, Brett Parker wrote:
ip -o link | sed -ne '/state UP/ { s#.*link/ether ##; s# .*$##; p; }'
Look at how many fewer processes that uses to get the same result ;)
It's not the same result if you have multiple active interfaces ;)
Adam