~earboxer/gurglesolver

958665b368ca1534ff9db0dcbf5c704a614ae23e — Zach DeCook 8 months ago 5ef4989 zachster
README: document easy way to generate solutions.txt and guessable.txt
1 files changed, 9 insertions(+), 0 deletions(-)

M README
M README => README +9 -0
@@ 14,6 14,15 @@ two files:
* guessable.txt
(a basic 5-letter-word list will suffice for both)

If you have dictionaries in /usr/share/dict, these commands might be useful to make the lists.

```sh
# solutions is just words
cat /usr/share/dict/* | grep '^[a-z][a-z][a-z][a-z][a-z]$' | sort -u > solutions.txt
# guessable also includes proper nouns
cat /usr/share/dict/* | tr '[:upper:]' '[:lower]' | grep '^[a-z][a-z][a-z][a-z][a-z]$' | sort -u > guessable.txt
```

posix-compatible programs:
* sh
* grep