tom haynes

Open networks

Wrote a function to list all open wireless networks, sorted by signal strength. Note: only works on Mac.

function networks {
    /System/Library/PrivateFrameworks/Apple80211.framework/Versions/A/Resources/airport -s | grep "NONE" | sort -bn -k3
}

Add that to your ~/.profile (make sure you source it afterwards).

If you want this new command to be tab-completable, run

complete -F networks networks

Enjoy!