Skip to content

Instantly share code, notes, and snippets.

@jsundram
Created April 4, 2021 22:01
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jsundram/022ca6df15c389bf763aaeaebce3ad0f to your computer and use it in GitHub Desktop.
Save jsundram/022ca6df15c389bf763aaeaebce3ad0f to your computer and use it in GitHub Desktop.
get a few random words from the osx dictionary file
# 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