Skip to content

Instantly share code, notes, and snippets.

@auxiliary-character
Last active October 9, 2018 18:37
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 auxiliary-character/7038301b970d83bd9a23a0074b21990b to your computer and use it in GitHub Desktop.
Save auxiliary-character/7038301b970d83bd9a23a0074b21990b to your computer and use it in GitHub Desktop.
Longest 7 segment displayable word solution
#!/bin/bash
cat /usr/share/dict/american-english | grep -i -e "^[^gkmqvwxz]*$" | awk '{ print length, $0 }' | sort -n | cut -d' ' -f2- | tail -n 1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment