summaryrefslogtreecommitdiff
path: root/words-misc/countdown.sh
diff options
context:
space:
mode:
Diffstat (limited to 'words-misc/countdown.sh')
-rwxr-xr-xwords-misc/countdown.sh11
1 files changed, 11 insertions, 0 deletions
diff --git a/words-misc/countdown.sh b/words-misc/countdown.sh
new file mode 100755
index 0000000..e25be7a
--- /dev/null
+++ b/words-misc/countdown.sh
@@ -0,0 +1,11 @@
+#!/bin/bash
+
+if [ -x $1 ]; then
+ echo Syntax: $0 [letters]
+ exit
+fi
+
+< /usr/share/dict/words ./match_pool $1 | \
+ grep 'matches$' | \
+ awk '{print length($1)" "$1}' | \
+ sort -n