Skip to content

Instantly share code, notes, and snippets.

@stef
Created January 30, 2012 23:00
Show Gist options
  • Save stef/1707350 to your computer and use it in GitHub Desktop.
Save stef/1707350 to your computer and use it in GitHub Desktop.
ascii histogram of channel density
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