Update pruebaRed.sh

This commit is contained in:
Manuel Vergara 2024-03-11 16:05:10 +01:00
parent af65bd47c1
commit a816e6a075

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
}