It's not directly related, but there's similar output from "ifconfig" that doesn't rely on the size of the dmesg buffer: | $ ifconfig -a | \ | perl -nlwe 'if (/^(\S+)/) { $cur_if = $1; } | if (/HWaddr ([0-9a-f:]+)/) { print "$cur_if: $1" }' | eth0: 00:02:B3:11:55:40 | eth0:0: 00:02:B3:11:55:40 | eth0:1: 00:02:B3:11:55:40 | eth0:2: 00:02:B3:11:55:40 t.