get_network_interface_names.sh: adjust script.

This commit is contained in:
Christoph 2019-06-30 17:21:00 +02:00
parent 2b34440c6a
commit d11e1e0eac

View File

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