Skip to content

Instantly share code, notes, and snippets.

@girasquid
Created November 26, 2016 16:04
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 girasquid/0633279cb22fa0db51fb4ea6ed6c4e3b to your computer and use it in GitHub Desktop.
Save girasquid/0633279cb22fa0db51fb4ea6ed6c4e3b to your computer and use it in GitHub Desktop.
Get all words that are between 3 and 6 characters long from your system's dictionary, and then format them so that you can drop them into an array.
cat /usr/share/dict/words | grep '.\{3\}' | grep -v '.\{6\}' | sed 's/^/"/;s/$/",/' | pbcopy
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment