diff options
author | Jan Huwald <jh@sotun.de> | 2013-06-28 14:31:14 (GMT) |
---|---|---|
committer | Jan Huwald <jh@sotun.de> | 2013-06-28 14:31:14 (GMT) |
commit | e96ca19e6874a10ba828597fa05962dd2bdcfff7 (patch) | |
tree | 4a92ae2df1fd1b1b614df6489166274376bf970c /analysis/cumtrajhist.sh | |
parent | f9fb52f365f2354d2133a05e7dee92eb8edc5ec4 (diff) |
Diffstat (limited to 'analysis/cumtrajhist.sh')
-rwxr-xr-x | analysis/cumtrajhist.sh | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/analysis/cumtrajhist.sh b/analysis/cumtrajhist.sh new file mode 100755 index 0000000..ae6e5b2 --- /dev/null +++ b/analysis/cumtrajhist.sh @@ -0,0 +1,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 }' |