In regular expressions, using grep, match for words that start with "thr", followed by zero or more vowels, and ending in t (e.g. threat and throat) in file test.txt?
Answer
grep -w 'thr[aeiou]*t' test.txt
^^ not the use of [aeiou] to match for any one of the included chars that are vowels
Question
In regular expressions, using grep, match for words that start with "thr", followed by zero or more vowels, and ending in t (e.g. threat and throat) in file test.txt?
Answer
?
Question
In regular expressions, using grep, match for words that start with "thr", followed by zero or more vowels, and ending in t (e.g. threat and throat) in file test.txt?
Answer
grep -w 'thr[aeiou]*t' test.txt
^^ not the use of [aeiou] to match for any one of the included chars that are vowels
If you want to change selection, open document below and click on "Move attachment"
5. Regular Expressions ble. This is true of many programming languages. ] Note how the square brackets mean one-of-several-characters and the round brackets with | 's mean one-of-several-words. grep -w 'thr[aeiou]*t' <span>Matches the words threat and throat . As you can see, a list of possible characters can be placed inside the square brackets. grep -w 'thr[^a-f]*t' Matches the words throughput and thrust . The ^ after the first bracket mea
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.