summaryrefslogtreecommitdiff
path: root/analysis/cumtrajhist.sh
blob: ae6e5b225b5d8241540b46cb3b195dbf87508d38 (plain)
1
2
3
4
5
6
7
8
9
10
#!/bin/sh

  awk '{ print $4/(1+$5), $2*$4 }'  \
| sort -g \
| awk '
    BEGIN { cum = 0 }
          { print cum, $1
            cum = cum + $2
            last = $1 }
    END   { print cum, last }'
contact: Jan Huwald // Impressum