Skip to content

Instantly share code, notes, and snippets.

@sebnash
Created October 1, 2012 11:07
Show Gist options
  • Save sebnash/3810982 to your computer and use it in GitHub Desktop.
Save sebnash/3810982 to your computer and use it in GitHub Desktop.
One-liner: OS X current Wi-Fi network (≥10.6?)
/System/Library/PrivateFrameworks/Apple80211.framework/Versions/Current/Resources/airport -I | awk '/ SSID/ {print substr($0, index($0, $2))}'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment