diff --git a/src/pruebaRed.sh b/src/pruebaRed.sh index 89f004d..c97dba8 100755 --- a/src/pruebaRed.sh +++ b/src/pruebaRed.sh @@ -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 }