debianのeth0とかeth1とかが認識順になるせいでNICの指定がめんどくさい。
ifconfig -s |perl -lne 's/(\S+).*/$1/; print unless /^(?:Iface|lo)$/'
ifconfig -s |perl -lne 'grep {print unless /^(?:Iface|lo)$/} /(\S+)/'
debianのeth0とかeth1とかが認識順になるせいでNICの指定がめんどくさい。
ifconfig -s |perl -lne 's/(\S+).*/$1/; print unless /^(?:Iface|lo)$/'
ifconfig -s |perl -lne 'grep {print unless /^(?:Iface|lo)$/} /(\S+)/'