Skip to content

Instantly share code, notes, and snippets.

@williamjacksn
williamjacksn / get-random-words.sh
Last active August 16, 2021 13:19
Get random words from dictionary file, great for creating passwords
#!/bin/sh
# Install a dictionary file on Ubuntu like so
# sudo apt install wamerican
# ignore words with an apostrophe, then choose 10 at random
grep --fixed-strings --invert-match \' /usr/share/dict/words | shuf --head-count=10