Are there any words in the English language that use at least half of the alphabet without repeating any letters?

cat /usr/share/dict/words | egrep '^\w{13,}$' | egrep -iv '(\w).*\1'
This is the most straightforward approach: first regexp limits dictionary file to words with thirteen or more characters, second regexp discards any words that have a letter repeated. (Bonus challenge: Try doing it in a single regexp!)
Sample Output
# You'll just have to try it to find out!

What Others Think

P.S. Please don't put the answer in the comments. Let people figure it out and/or be surprised! :-)
hackerb9 · 374 weeks and 5 days ago
the "cat blah | egrep " structure is always ugly to me. the following does exactly the same : egrep '^\w{13,}$' /usr/share/dict/words | egrep -iv '(\w).*\1'
snaguber · 371 weeks and 3 days ago
You're right, snaguber, that does work and it saves four or five keystrokes plus an entire process. I find the superfluous cat helpful, even beautiful, when I'm working with pipelines, though, as it keeps the data flowing from left to right. Beauty is in the eye of the beholder, I suppose.
hackerb9 · 371 weeks and 3 days ago
Through this website you can learn so many such commands that make your tasks so simple. The details regarding the egrep command is mentioned here and the sample output associated with the program is also mentioned here. I am looking here for more such commands from here.
Alyssalauren · 5 weeks ago

What do you think?

Any thoughts on this command? Does it work on your machine? Can you do the same thing with only 14 characters?

You must be signed in to comment.

What's this? is the place to record those command-line gems that you return to again and again. That way others can gain from your CLI wisdom and you from theirs too. All commands can be commented on, discussed and voted up or down.

Share Your Commands

Stay in the loop…

Follow the Tweets.

Every new command is wrapped in a tweet and posted to Twitter. Following the stream is a great way of staying abreast of the latest commands. For the more discerning, there are Twitter accounts for commands that get a minimum of 3 and 10 votes - that way only the great commands get tweeted.


Subscribe to the feeds.

Use your favourite RSS aggregator to stay in touch with the latest commands. There are feeds mirroring the 3 Twitter streams as well as for virtually every other subset (users, tags, functions,…):

Subscribe to the feed for: