From a816e6a07541b4795e342056289dfe4952a5f6ea Mon Sep 17 00:00:00 2001 From: Manuel Vergara Date: Mon, 11 Mar 2024 16:05:10 +0100 Subject: [PATCH] Update pruebaRed.sh --- 01_bash/pruebaRed.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/01_bash/pruebaRed.sh b/01_bash/pruebaRed.sh index 89f004d..c97dba8 100755 --- a/01_bash/pruebaRed.sh +++ b/01_bash/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 }