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, match for the words kremlin, krypton, krn, krzn, in file test.txt?
Answer
grep -w 'kr.*n' test.txt
^^ note the use of "." followed by "*" to search for 0 or more of any char

Question
In regular expressions, using grep, match for the words kremlin, krypton, krn, krzn, in file test.txt?
Answer
?

Question
In regular expressions, using grep, match for the words kremlin, krypton, krn, krzn, in file test.txt?
Answer
grep -w 'kr.*n' test.txt
^^ note the use of "." followed by "*" to search for 0 or more of any char
If you want to change selection, open document below and click on "Move attachment"

5. Regular Expressions
-w 'cr[a-m]*t' Matches the words craft , credit , and cricket . The * means to match any number of the previous character, which in this case is any character from a through m . grep -w 'kr.*n' <span>Matches the words kremlin and krypton , because the . matches any character and the * means to match the dot any number of times. egrep -w '(th|sh).*rt' Matches the words shirt , short , and thwart . The | means to match ei

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.