diff options
Diffstat (limited to 'words-misc/countdown.sh')
-rwxr-xr-x | words-misc/countdown.sh | 11 |
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 |