Created
January 27, 2018 08:03
-
-
Save lucascantor/7372572d03158179d2580f29937ba600 to your computer and use it in GitHub Desktop.
Return a list of preferred wifi network SSIDs
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 characters
networksetup -listpreferredwirelessnetworks `networksetup -listallhardwareports | awk '/Wi-Fi|AirPort/{getline; print $NF}'` | sed 's/^ //g' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment