-
-
Save solus-hq/1a8f7ec3711d7840756da1cc3e5f9927 to your computer and use it in GitHub Desktop.
Revisions
-
scottstanfield created this gist
Aug 18, 2019 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,18 @@ #!/usr/bin/env bash set -o errexit set -o pipefail # BSSID # CHANNEL # SSID # CtlRSSI cmd="/System/Library/PrivateFrameworks/Apple*.framework/Versions/Current/Resources/airport -I" printf 'RSI\tAP MAC\t\t\tSSID\n' while true; do $cmd | sed 's/:/|/' | grep -e 'BSSID' -e 'SSID' -e 'CtlRSSI' | cut -f2 -d '|' | paste -s sleep 0.5 done