WIP
[evolve-layout.git] / csv-ftw.sh
blob8196f240aa4dec8ec00753b08b020d8e7d96257b
1 #!/bin/sh
3 # Nur, weil das in Python nicht direkt ausgegeben werden kann. ;-)
4 # chau mal in recheck_*.py :)
6 tmp=$(tempfile)
7 > "$tmp"
9 for a in results/2010-*.txt; do
10 sed 's/^# //; t a; d; :a s/ billion total penalty compared to notime-//; t b; d; :b N; s/noeffort[^\n]*\n# [0-9]*.[0-9]* mean key position cost in file 1gramme.txt ( /;/; t c; d; :c N; s/ )[^\n]*\n# [0-9]*.[0-9]* % finger repeats in file 2gramme.txt ( /;/; N; s/ )[^\n]*\n# [0-9]*.[0-9]* million keystrokes disbalance of the fingers ( /;/; N; s/ )[^\n]*\n# [0-9]*.[0-9]* % finger repeats top to bottom or vice versa ( /;/; N; s/ )[^\n]*\n# [0-9]*.[0-9]* % of trigrams have no handswitching (after direction change counted x 1 ) ( /;/; N; s/ )[^\n]*\n# [0-9]*.[0-9]* billion (rows²\/dist)² to cross ( /;/; N; N; s/ )[^\n]*\n# [0-9]*.[0-9]*[e]*[+-]*[0-9]* hand disbalance. Left: [0-9]*.[0-9]* %, Right: [0-9]*.[0-9]* %[^\n]*\n# /;/; N; s/ badly positioned shortcut keys (weighted).[^\n]*\n# /;/; N; s/ no handswitching after unbalancing key (weighted).[^\n]*\n# /;/; s/ movement pattern cost (weighted).[^$]*$//; p; d;' "$a" | grep '^[0-9]*.[0-9]*;[0-9]*.[0-9]*;[0-9]*.[0-9]*;[0-9]*.[0-9]*;[0-9]*.[0-9]*;[0-9]*.[0-9]*;[0-9]*.[0-9]*;[0-9]*.[0-9]*;[0-9]*.[0-9]*;[0-9]*.[0-9]*$' >> "$tmp"
11 done
13 echo "total penalty;key position cost;finger repeats;disbalance of fingers;top to bottom or vice versa;handswitching in trigram;(rows²/dist)²;shortcut keys;handswitching after unbalancing;movement pattern"
15 sort -u "$tmp"