evolve-keyboard-layout / csv-ftw.sh

#!/bin/sh

# Nur, weil das in Python nicht direkt ausgegeben werden kann. ;-)
# chau mal in recheck_*.py :)

tmp=$(tempfile)
> "$tmp"

for a in results/2010-*.txt; do
	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"
done

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"

sort -u "$tmp"
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.