From ee6fcc2f5f5463a292ee1c93a605ad6367397416 Mon Sep 17 00:00:00 2001 From: iamromulan <50184035+iamromulan@users.noreply.github.com> Date: Fri, 5 Jan 2024 17:58:52 -0500 Subject: [PATCH] Update beta.sh use awk instead of nl --- beta.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/beta.sh b/beta.sh index 60d86d3..a27cbb4 100644 --- a/beta.sh +++ b/beta.sh @@ -135,7 +135,7 @@ configure_simple_firewall() { echo "Current firewall configuration:" ports=$(grep '^PORTS=' "$SIMPLE_FIREWALL_SCRIPT" | cut -d'(' -f2 | tr -d '")' | tr ' ' '\n') - echo "$ports" | nl + echo "$ports" | awk '{print NR") "$0}' while true; do echo "Enter a port number to add/remove, or type 'done' to finish:"