#153 How many words have four consecutive vowels using grep?
The square brackets mean list. The search is for the letter a or e or i or o or u. Then we add the brace brackets at the end enables multipliers. Having just the number 4 in the braces indicates that we are looking for four vowels consecutive row. Use this script for crosswords and Scrabble 🙂
grep -E '[aeiou]{4}' /usr/share/dict/words
Output:
Hawaiian Hawaiian's Hawaiians Iroquoian Iroquoian's Kauai Kauai's Kilauea Kilauea's Louie Louie's Montesquieu Montesquieu's Quaoar Quaoar's Rouault Rouault's aqueous gooier gooiest obsequious obsequiously obsequiousness obsequiousness's onomatopoeia onomatopoeia's pharmacopoeia pharmacopoeia's pharmacopoeias plateaued plateauing queue queue's queued queues queuing sequoia sequoia's sequoias
Recent Comments