summaryrefslogtreecommitdiff
path: root/motus/make_dict.sh
blob: 8e5a06696716e544af26719007350870c5d2db45 (plain)
1
2
3
4
5
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