about summary refs log tree commit diff
diff options
context:
space:
mode:
authorZach DeCook <zachdecook@librem.one>2024-03-08 20:57:56 -0500
committerZach DeCook <zachdecook@librem.one>2024-03-08 20:57:56 -0500
commit958665b368ca1534ff9db0dcbf5c704a614ae23e (patch)
treeb07e48df1a7520ff3ed8c9be3d7fbae35de86c20
parent5ef4989e6223c61fffcc648ca315cf6a16b8d07f (diff)
downloadgurglesolver-958665b368ca1534ff9db0dcbf5c704a614ae23e.tar.gz
README: document easy way to generate solutions.txt and guessable.txt
-rw-r--r--README9
1 files changed, 9 insertions, 0 deletions
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