Add snippet 'get_network_interface_names.sh'.
This commit is contained in:
parent
ad910633a2
commit
37f75c32c9
11
snippets/get_network_interface_names.sh
Executable file
11
snippets/get_network_interface_names.sh
Executable 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
|
Loading…
x
Reference in New Issue
Block a user