Skip to content

Instantly share code, notes, and snippets.

@williamjacksn
Last active August 16, 2021 13:19
Show Gist options
  • Save williamjacksn/9c37f1929764a1f79f72beaba122ea86 to your computer and use it in GitHub Desktop.
Save williamjacksn/9c37f1929764a1f79f72beaba122ea86 to your computer and use it in GitHub Desktop.
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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment