Which of the following commands will return only lines that begin 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