From 958665b368ca1534ff9db0dcbf5c704a614ae23e Mon Sep 17 00:00:00 2001 From: Zach DeCook Date: Fri, 8 Mar 2024 20:57:56 -0500 Subject: README: document easy way to generate solutions.txt and guessable.txt --- README | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'README') diff --git a/README b/README index fe0b718..9c48d06 100644 --- a/README +++ b/README @@ -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 -- cgit 1.4.1