diff options
author | Tom Ryder <tom@sanctum.geek.nz> | 2016-07-08 12:43:20 +1200 |
---|---|---|
committer | Tom Ryder <tom@sanctum.geek.nz> | 2016-07-08 12:43:20 +1200 |
commit | dd4c93916d54db88ac142617fe3f0ea8d4cc47f2 (patch) | |
tree | f9ed64e6342a56c83b444fcc0d1bc4b15fddec7c /games | |
parent | Add wrds to games (diff) | |
download | dotfiles-dd4c93916d54db88ac142617fe3f0ea8d4cc47f2.tar.gz dotfiles-dd4c93916d54db88ac142617fe3f0ea8d4cc47f2.zip |
Allow providing wordlist to hku
Diffstat (limited to 'games')
-rwxr-xr-x | games/hku | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -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:]' |