Last active
February 21, 2017 23:20
-
-
Save henri/fe7ac5ce17e8bc7ff74a68c4c8cfdb96 to your computer and use it in GitHub Desktop.
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
#!/usr/bin/env bash | |
grep `/System/Library/PrivateFrameworks/Apple80211.framework/Versions/A/Resources/airport -I | awk '/BSSID/{print $2}'` /tmp/file.csv | head -n 1 | awk -F "," '{print $2}' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Or one that only uses
awk
: