I've been stuck on these 2 problems for two weeks now.. (T__T) Sometimes i feel i'm getting close, but i just can't solve these!
#1 - Trying to match all words which contains all vowels (AEIOU) in order:
Code: Select all
grep -Ei '*a[^eiou]*e[^aiou]*i[^aeou]*o[^aeiu]*u[^aeio]*[^aeiou]$' $DIC
This variation [ grep -Ei '*a[^eiou]*e[^aiou]*i[^aeou]*o[^aeiu]*u[^aeio]*' ] of the above code gives me the same output, but including two more words:
I don't want the answer i just wanna know: what am i missing Which one is closer: the 1st or the 2nd approach?
#2 - How many words can you find which contain any two characters repeated three times, like the examples "interlinking" and "priestessess".
About the problem #2, i've already asked about it in Linux forums. I just want to point a minor mistake on check button of this question.. it reads:
- Three character string appears 3 times (takes a few seconds)
It's a bit confusing Do we have to check for two or three character string appearing 3 times?
I appreciate your attention and patience and i'm looking forward for your answer!