Last active
November 30, 2020 11:48
-
-
Save turboBasic/d13a58752eb5cd5cd5c29bb9627e2802 to your computer and use it in GitHub Desktop.
Generate passphrase from N random words
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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