cw-solver.sh
bash (Bourne shell)
Public Domain, despite the GPL licence appearing in some versions of the code.
You can give it an argument consisting of letters interspaced with periods
which it will use to search through a word list to find a word that matches this
pattern. The periods correspond to unknown letters in the word. For example, if
you use the pattern we.com.
, it will find the word welcome
.
Ripped shamelessly from the Advanced Bash-Scripting Guide, revision 10, example 16-18.
Because in the Bash-scripting guide this code was public domain, this program is too, despite the GPL coming in the head of the code.
I find this useful because for the same reason as the anagram program, I don't usually buy newspapers on consecutive days, so if I do the crossword in it, I usually don't see the next day's paper for the solution.
This program depends on having a word list installed, achieved by installing
one or more w{lang}
files and then selecting your preferred one with
sudo select-default-wordlist
.
Download it here
Version 1.4