From ed7bde8f7b9b2f06a635cf12f25c55298edaf7af Mon Sep 17 00:00:00 2001 From: Andrew Date: Wed, 11 Dec 2024 23:35:55 +0000 Subject: [PATCH] [wifi_dmenu.sh]: Make awk use two spaces as column delimiter --- wifi_dmenu.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wifi_dmenu.sh b/wifi_dmenu.sh index e6f71cb..e541068 100755 --- a/wifi_dmenu.sh +++ b/wifi_dmenu.sh @@ -5,4 +5,4 @@ script_name="$(basename "$0")" notify-send "$script_name" "Scanning for available networks..." # cutting the first 9 characters of the nmcli output as it will contain empty fields which will mess up awk parsing -notify-send "$script_name" "$( nmcli connection up $( nmcli device wifi list | cut --characters=9- | awk '(NR > 1){ print $2}' | sort | uniq | dmenu -i -p "Connect to network: ") 2>&1 )" +notify-send "$script_name" "$( nmcli connection up $( nmcli device wifi list | cut --characters=9- | awk -F ' ' '(NR > 1){ print $2}' | sort | uniq | dmenu -i -p "Connect to network: ") 2>&1 )"