for iface in $(ls /sys/class/net/); do
    if [[ -e /sys/class/net/$iface/device ]]; then
        echo "$iface $(ethtool $iface | awk '/Speed:/ {print $2}')"
    fi
done
