bug-grep
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: I cant get my head around this...


From: Jian Wang
Subject: Re: I cant get my head around this...
Date: Tue, 7 Nov 2006 17:01:44 +0800

On 11/6/06, mykg4orce <address@hidden> wrote:
1)List all the lines in the "f3.txt" file that contain words which contain
exactly one vowel.
$ grep -E '\<[^aeiou]*[aeiou][^aeiou]*\>' f3.txt

2)List all the lines in the "f3.txt" file that contain words which begin and
end with a consonant but otherwise consist only of vowels.
$ grep -E '\<[^aeiou][aeiou]+[^aeiou]\>' f3.txt




reply via email to

[Prev in Thread] Current Thread [Next in Thread]