title: Building a distribution of IP's with counts
body: <p>I am trying to get a more dtrace style distribution output when doing awks on large logfiles after a DDoS so that it is easier to read the output:</p>
  
  <pre><code># tail -1000 access_log | awk '{ print $1 }' | sort | uniq -c | sort -nr | awk '{printf("\n%s ",$0) ; for (i = 0; i&lt;$1 ; i++) {printf("*")};}'
  
    43 192.168.0.1 *******************************************
    38 192.168.0.2 **************************************
  </code></pre>
  
  <p>Hopefully it could look something like:</p>
  
  <pre><code>       value  ------------- Distribution ------------- count    
   192.168.0.1  @@@@@@@@@                                43 
   192.168.0.2  @@@@@@@@                                 38 
  </code></pre>
  
  <p>Where the @'s is a smaller summary of the count vs doing *'s for the number.  Getting it to automatically scale per run would be an added bonus vs me having to do maths to figure out how to rank each count.</p>