From 741f88ab405995003eb6e9f301d3b065c1e84a4a Mon Sep 17 00:00:00 2001 From: Sébastien Dailly Date: Fri, 28 Jan 2022 14:44:57 +0100 Subject: Added a motus solver --- motus/make_dict.sh | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100755 motus/make_dict.sh (limited to 'motus/make_dict.sh') 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 -- cgit v1.2.3