Skip to content

Instantly share code, notes, and snippets.

@mmattice
Created September 23, 2014 18:02
Show Gist options
  • Save mmattice/183a86cfcc02b0ab9ba3 to your computer and use it in GitHub Desktop.
Save mmattice/183a86cfcc02b0ab9ba3 to your computer and use it in GitHub Desktop.
Grab some random words from a dictionary file
#!/bin/bash
count=$1
if [[ $count = "" ]]; then count=2 ; fi
shuf -n $count /usr/share/dict/american-english | tr "\n" " "; echo
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment