Add snippet 'get_network_interface_names.sh'.

This commit is contained in:
Christoph 2018-12-29 13:12:46 +01:00
parent ad910633a2
commit 37f75c32c9

View File

@ -0,0 +1,11 @@
#!/usr/bin/env bash
inames=$(ip link | awk -F: '$0 !~ "lo|vir|wl|^[^0-9]"{print $2;getline}')
for _iname in $inames ; do
echo ""
echo "Found Interface '$_iname'"
done
echo ""
exit 0