Do you want BuboFlash to help you learning these things? Or do you want to add or correct something? Click here to log in or create user.



Question
In regular expressions, using grep, search for words that start with "sh" or "th" and end in "rt" (e.g. shirt, short, and thwart) in document test.txt?
Answer
grep -w '(sh|th).*rt' test.txt
^^ note the use of "|" for or, and the use of round brackets for matching words.

Question
In regular expressions, using grep, search for words that start with "sh" or "th" and end in "rt" (e.g. shirt, short, and thwart) in document test.txt?
Answer
?

Question
In regular expressions, using grep, search for words that start with "sh" or "th" and end in "rt" (e.g. shirt, short, and thwart) in document test.txt?
Answer
grep -w '(sh|th).*rt' test.txt
^^ note the use of "|" for or, and the use of round brackets for matching words.
If you want to change selection, open document below and click on "Move attachment"

5. Regular Expressions
thwart . The | means to match either the th or the sh . egrep is just like grep but supports extended regular expressions that allow for the | feature. [ The | character often denotes a logical <span>OR , meaning that either the thing on the left or the right of the | is applicable. This is true of many programming languages. ] Note how the square brackets mean one-of-several-character

Summary

statusnot learnedmeasured difficulty37% [default]last interval [days]               
repetition number in this series0memorised 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.