Created
January 30, 2012 23:00
-
-
Save stef/1707350 to your computer and use it in GitHub Desktop.
ascii histogram of channel density
This file contains 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
iwlist wlan0 scan | fgrep Channel: | sed 's/Channel://' | sort -n | uniq -c | sort -k2n | awk '{ print $2 " " $1 }' | awk '!max{max=$2;}{r="";i=s=$2/max;while(i-->0)r=r"#";printf "%3s %2d %s %s",$1,$2,r,"\n";}' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment