From d11e1e0eac857ae266e0b798e0f9cd65137b7b38 Mon Sep 17 00:00:00 2001 From: Christoph Date: Sun, 30 Jun 2019 17:21:00 +0200 Subject: [PATCH] get_network_interface_names.sh: adjust script. --- snippets/get_network_interface_names.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/snippets/get_network_interface_names.sh b/snippets/get_network_interface_names.sh index a90488e..161c362 100755 --- a/snippets/get_network_interface_names.sh +++ b/snippets/get_network_interface_names.sh @@ -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 ""