3 ms·
I did this to make the above: sort /tmp/foo |awk '{ print length, $0 }'|sort -n|awk '{print $1}'|uniq -c|awk '{r="";i=s=$1/10;while(i-->0)r=r"#";printf "%1
by jedberg 13y ago
I did this to make the above:
sort /tmp/foo |awk '{ print length, $0 }'|sort -n|awk '{print $1}'|uniq -c|awk '{r="";i=s=$1/10;while(i-->0)r=r"#";printf "%15s %5d %s %s",$2,$1,r,"\n";}'