diff options
author | emkael <emkael@tlen.pl> | 2015-04-20 15:50:28 +0200 |
---|---|---|
committer | emkael <emkael@tlen.pl> | 2015-04-20 15:50:28 +0200 |
commit | b1dd61c960f02f1b42b36fb964053d7d91a0b74d (patch) | |
tree | f0269c4423d4195eeee6328423f1cd39c2032829 /charts.sh | |
parent | 6017113e338191b475cd5caecaa668f9d0930672 (diff) |
* generating data for charts
Diffstat (limited to 'charts.sh')
-rwxr-xr-x | charts.sh | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/charts.sh b/charts.sh new file mode 100755 index 0000000..12cc29d --- /dev/null +++ b/charts.sh @@ -0,0 +1,10 @@ +python charts.py +grep -v '^#' rate.log | grep -v '^$' | paste -s -d ',,,\n' | grep -f charts/championship-races.csv | sed 's/\(Average\|Podium\) rating\( change\)\?: *//g' | sed 's/\([0-9]\) \([0-9]\)/\1,\2/g' > charts/rate.csv +python podiums.py +rm charts/rate.csv +cat charts/podium-averages.csv | sort --field-separator=',' --key=7 -r | head -n 21 > charts/strongest_podiums.csv +cat charts/podium-averages.csv | head -n 1 > charts/weakest_podiums.csv +cat charts/podium-averages.csv | sort --field-separator=',' --key=7 | tail -n+2 | head -n 20 >> charts/weakest_podiums.csv +cat charts/podium-averages.csv | sort --field-separator=',' --key=8 -r | head -n 21 > charts/biggest_shuffles.csv +cat charts/podium-averages.csv | head -n 1 > charts/smallest_shuffles.csv +cat charts/podium-averages.csv | sort --field-separator=',' --key=8 | head -n 20 >> charts/smallest_shuffles.csv |