diff options
| author | Zach DeCook <zachdecook@librem.one> | 2026-02-07 13:08:47 -0500 |
|---|---|---|
| committer | Zach DeCook <zachdecook@librem.one> | 2026-02-07 13:08:47 -0500 |
| commit | 11d2de856bd28f8caada768fe3adb35fd3f717ab (patch) | |
| tree | 8ba3c23e53d2562aa152824c1e7733e0cc8da9ed /addWord.sh | |
| parent | a1b932da2da9ba616f3aa84a5afd82894637378f (diff) | |
| download | swipeGuess-11d2de856bd28f8caada768fe3adb35fd3f717ab.tar.gz | |
Diffstat (limited to 'addWord.sh')
| -rwxr-xr-x | addWord.sh | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/addWord.sh b/addWord.sh index 9c4168c..45e662b 100755 --- a/addWord.sh +++ b/addWord.sh @@ -1,3 +1,5 @@ #!/bin/sh -cat ~/.local/share/sxmo/words.txt - > /tmp/unsortedwords.txt -mapScore ~/.local/share/sxmo/keyboard.map.tsv </tmp/unsortedwords.txt | sort -nr | cut -f2 > ~/.local/share/sxmo/words.txt +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" |
