about summary refs log tree commit diff
path: root/addWord.sh
blob: 45e662b99d0ff37a7f6172a614bfb505c8a0232d (plain)
1
2
3
4
5
#!/bin/sh
list=${1:-~/.local/share/sxmo/words.txt}
map=${2:-~/.local/share/sxmo/keyboard.map.tsv}
cat "$list" - > /tmp/unsortedwords.txt
mapScore "$map" bee </tmp/unsortedwords.txt | sort -nr | cut -f2 > "$list"