48.9k views
1 vote
What command would you give to list all English-language words that are exactly 5 characters long, have a lower-case vowel (‘a’, ‘e’, ‘i’, ‘o’, ‘u’, or ‘y’) in the second position, and ends with ‘s’? The remaining letters could be any character that occurs in English words, including but not limited to upper and lower-case alphabetics, numbers, hyphens, etc.

User Muldec
by
5.6k points

1 Answer

3 votes

Answer:

In simple words, The following command / order is used to dictate the English language characters that are initiated with ‘t’, have a downside-case vowel in the middle position and ends with ‘s’:

Command: grep '^[t].[aeiouy].s$'

input:

taeis

taeid

saeis

taais

taeis

taiis

taois

tauis

tayis

taxis

t_i_s

User Kaniyan
by
5.2k points