Suppose you were working a word puzzle and needed a 5-letter word beginning with
ID: 3552108 • Letter: S
Question
Suppose you were working a word puzzle and needed a 5-letter word beginning with 'd' (upper or lower-case) followed immediately by a lower-case vowel (including 'y') and ending with 's'. The remaining letters could be any character that occurs in English words, including upper and lower-case alphabetics, hyphens, etc. (We will accept the file /usr/share/dict/words as the authority on what constitutes a valid English word.)
What command would you enter to see 5-letter words that begin with 'd' (upper or lower-case), followed by a lower-case
vowel, and ending in 's'?
Explanation / Answer
egrep '[dD][aeiouy][a-zA-Z]{2}s' /usr/share/dict/words
Related Questions
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.