aboutsummaryrefslogtreecommitdiff
path: root/games
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2016-07-08 12:43:20 +1200
committerTom Ryder <tom@sanctum.geek.nz>2016-07-08 12:43:20 +1200
commitdd4c93916d54db88ac142617fe3f0ea8d4cc47f2 (patch)
treef9ed64e6342a56c83b444fcc0d1bc4b15fddec7c /games
parentAdd wrds to games (diff)
downloaddotfiles-dd4c93916d54db88ac142617fe3f0ea8d4cc47f2.tar.gz
dotfiles-dd4c93916d54db88ac142617fe3f0ea8d4cc47f2.zip
Allow providing wordlist to hku
Diffstat (limited to 'games')
-rwxr-xr-xgames/hku5
1 files changed, 3 insertions, 2 deletions
diff --git a/games/hku b/games/hku
index 029b41c6..4deb7460 100755
--- a/games/hku
+++ b/games/hku
@@ -12,5 +12,6 @@ for ((lc=0;lc<${#lsts[@]};lc++)) ; do
((sc+=sy))
done
printf '%s\n' "${ws[*]}"
-done < <(shuf /usr/share/dict/words |
- grep -v \'s\$)
+done < <(shuf "${@:-/usr/share/dict/words}" |
+ grep -v \'s\$) |
+ tr '[:upper:]' '[:lower:]'