Which of the following commands will return only lines that end with test?
- grep '^test' file.txt
- grep 'test$' file.txt
- grep '$test' file.txt
- grep 'test^' file.txt
Please login or Register to submit your answer