diff options
author | Sébastien Dailly <sebastien@dailly.me> | 2022-01-28 14:44:57 +0100 |
---|---|---|
committer | Sébastien Dailly <sebastien@dailly.me> | 2022-02-07 16:22:43 +0100 |
commit | 741f88ab405995003eb6e9f301d3b065c1e84a4a (patch) | |
tree | 08ba9ec2247c56680611d542ed9b096c5f1a083b /motus/make_dict.sh | |
parent | c0c82a7bfe8300b1bd50fee11074837ff32d3da0 (diff) |
Added a motus solver
Diffstat (limited to 'motus/make_dict.sh')
-rwxr-xr-x | motus/make_dict.sh | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/motus/make_dict.sh b/motus/make_dict.sh new file mode 100755 index 0000000..8e5a066 --- /dev/null +++ b/motus/make_dict.sh @@ -0,0 +1,6 @@ +#!/bin/sh +# Split the given dictionnary in files containing words of given length (1 to 10) +mkdir -p dicts +for i in $(seq 1 10); do + LANG=C grep -E "^.{$i}\$" $1 > dicts/$1_$i +done |