Created
April 4, 2021 22:01
-
-
Save jsundram/022ca6df15c389bf763aaeaebce3ad0f to your computer and use it in GitHub Desktop.
get a few random words from the osx dictionary file
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
# https://stackoverflow.com/questions/9245638/select-random-lines-from-a-file | |
cat /usr/share/dict/words | sort -R | head -10 $lines | |
# faster | |
gshuf -n 10 /usr/share/dict/words |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment