In regular expressions, using grep, search for all lines in a file test.txt, that have words ending with 7 or more vowels?
Answer
grep -w '.*[aeiou]\{7,\}' test.txt
^^ note the syntax \{7,\}
Question
In regular expressions, using grep, search for all lines in a file test.txt, that have words ending with 7 or more vowels?
Answer
?
Question
In regular expressions, using grep, search for all lines in a file test.txt, that have words ending with 7 or more vowels?
Answer
grep -w '.*[aeiou]\{7,\}' test.txt
^^ note the syntax \{7,\}
If you want to change selection, open document below and click on "Move attachment"
5. Regular Expressions with, for example, x\{3,5\} , which will match at least three but not more than five x 's, that is xxx , xxxx , or xxxxx . x\{4\} can then be used to match 4 x 's exactly: no more and no less. <span>x\{7,\} will match seven or more x 's--the upper limit is omitted to mean that there is no maximum number of x 's. As in all the examples above, the x can be a range of characters (like [a-k] )
Summary
status
not learned
measured difficulty
37% [default]
last interval [days]
repetition number in this series
0
memorised on
scheduled repetition
scheduled repetition interval
last repetition or drill
Details
No repetitions
Discussion
Do you want to join discussion? Click here to log in or create user.