Edited, memorised or added to reading queue

on 13-Oct-2018 (Sat)

Do you want BuboFlash to help you learning these things? Click here to log in or create user.

Flashcard 3415977889036

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

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







extensible ɪkˈstɛnsɪb(ə)l , ɛkˈstɛnsɪb(ə)l / adjective adjective: extensible
  1. able to be extended; extendable. "an extensible architecture designed to accommodate change
statusnot read reprioritisations
last reprioritisation on suggested re-reading day
started reading on finished reading on

Unknown title
hour Past 24 hours Past week Past month Past year Custom range... Customised date range From To All results All results Verbatim About 9,390,000 results (0.61 seconds) Search Results Dictionary <span>extensible ɪkˈstɛnsɪb(ə)l,ɛkˈstɛnsɪb(ə)l/ adjective adjective: extensible able to be extended; extendable. "an extensible architecture designed to accommodate changes" Translate extensible to Choose language Afrikaans Albanian Amharic Arabic Armenian Azerbaijani Bangla Basque Belarusian Bosnian Bulgarian Burmese Catalan Cebuano Chinese (Simplified)