Update pruebaRed.sh

This commit is contained in:
Manuel Vergara 2024-03-11 16:06:30 +01:00
parent f03bbddd1e
commit 546db77b5d

View File

@ -211,7 +211,7 @@ get_interfaces() {
print_title " TARJETAS DE RED"
while read -r interface; do
network_info+=("$(print_network_info "$interface")")
done < <(ip -o link show | awk -F': ' '{print $2}')
done < <(ip -o link show | awk -F': ' '{sub(/@.*/, "", $2); print $2}')
print_network_table
}