From: Siraaj Khandkar Date: Mon, 2 Nov 2020 09:59:30 +0000 (-0500) Subject: Tighten bluetoothctl output matching to exclude logs X-Git-Url: https://git.xandkar.net/?a=commitdiff_plain;h=311f355aa86a749229d3c04fcd17752c3fe9cb63;p=khome.git Tighten bluetoothctl output matching to exclude logs --- diff --git a/home/lib/login_functions.sh b/home/lib/login_functions.sh index 6b0c1bc..243f15f 100644 --- a/home/lib/login_functions.sh +++ b/home/lib/login_functions.sh @@ -346,7 +346,7 @@ _bt_devs_infos() { # which bluetoothctl outputs awk '/^Device +/ {print $2}' \ | xargs -I% sh -c 'echo info % | bluetoothctl' \ - | awk '/^Device |^\t/' + | awk '/^Device |^\t[A-Z][A-Za-z0-9]+: /' } bt_devs_paired() {