Skip to content

Instantly share code, notes, and snippets.

@cbbrowne
Created September 7, 2011 21:43
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save cbbrowne/1201859 to your computer and use it in GitHub Desktop.
Save cbbrowne/1201859 to your computer and use it in GitHub Desktop.
XKCD #936 password - 4 words, of length (3,7), excluding Proper Names and words containing apostrophes
echo $(grep "^[^'A-Z]\{3,7\}$" /usr/share/dict/words|shuf -n4)
@cbbrowne
Copy link
Author

cbbrowne commented Sep 7, 2011

Similar to other submissions that have been occurring in profusion.

Differences:

  1. Limit size to range (3,7) so there are neither super-short nor super-long words
  2. Exclude capital letters, to exclude proper names
  3. Exclude apostrophes, because dict includes contractions which're a pain.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment