Skip to content

Instantly share code, notes, and snippets.

@grundic
Last active April 14, 2020 06:31
Show Gist options
  • Save grundic/5e4b7f62efc27bd32ea0932a4cafab36 to your computer and use it in GitHub Desktop.
Save grundic/5e4b7f62efc27bd32ea0932a4cafab36 to your computer and use it in GitHub Desktop.
Scan for wifi networks in osx

Run this command to periodically rescan for specific network SSID:

while :; do \
  clear; echo "${airport_out}"; \
  airport_out=$(airport --scan=<YOUR_SSID> 2>&1 | awk 'NR == 1; NR > 1 {print $0 | "sort -k3"}'); \
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment