replytime

plot email reply time
git clone https://a3nm.net/git/replytime/
Log | Files | Refs

stat.sh (235B)


      1 #!/bin/bash
      2 
      3 sort -k1,1 -k4n |
      4   awk '!a[$1]++' |
      5   awk '{print $1, $4 - $2}' |
      6   sort -k2,2n |
      7   cut -d ' ' -f2 |
      8   sort -n | awk '{printf ("%d\n", log($1)/log(2))}' | sort -n | uniq -c |
      9   awk '{print $1, exp(log(2)*$2)}'  | nl -b a