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 all lines that begin with the word "The", in file test.txt
Answer
grep '^The' test.txt
^^ note the use of "^", also accaptable is: grep ' *^The' test.txt, this is to cover leading whitespace

Question
In regular expressions, using grep, search for all lines that begin with the word "The", in file test.txt
Answer
?

Question
In regular expressions, using grep, search for all lines that begin with the word "The", in file test.txt
Answer
grep '^The' test.txt
^^ note the use of "^", also accaptable is: grep ' *^The' test.txt, this is to cover leading whitespace
If you want to change selection, open document below and click on "Move attachment"

5. Regular Expressions
and sometimes you would like to match a line that begins or ends with a certain string. The ^ character specifies the beginning of a line, and the $ character the end of the line. For example, <span>^The matches all lines that start with a The , and hack$ matches all lines that end with hack , and '^ *The.*hack *$' matches all lines that begin with The and end with hack , even if there

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.