Question
In regular expressions, using grep, search for all the lines that end with the word "hack" (may be followed by some whitespace), in file test.txt?
grep 'hack *$' test.txt ^^ note the use of$, also note the " *" do count for whitespace

Question
In regular expressions, using grep, search for all the lines that end with the word "hack" (may be followed by some whitespace), in file test.txt?
?

Question
In regular expressions, using grep, search for all the lines that end with the word "hack" (may be followed by some whitespace), in file test.txt?
grep 'hack *$' test.txt ^^ note the use of$, also note the " *" do count for whitespace
If you want to change selection, open document below and click on "Move attachment"

5. Regular Expressions
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, ^The matches all lines that start with a The , and <span>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 is whitespace at the beginning or end of the line. B

#### Summary

status measured difficulty not learned 37% [default] 0

No repetitions