Skip to content

Instantly share code, notes, and snippets.

@turboBasic
Last active November 30, 2020 11:48
Show Gist options
  • Save turboBasic/d13a58752eb5cd5cd5c29bb9627e2802 to your computer and use it in GitHub Desktop.
Save turboBasic/d13a58752eb5cd5cd5c29bb9627e2802 to your computer and use it in GitHub Desktop.
Generate passphrase from N random words
#!/bin/sh
/usr/bin/shuf --head-count "${1:-5}" /usr/share/dict/words \
| awk '{printf "%s ", $0} END{print}'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment