Which of the following commands will return only lines that begin with test?

Which of the following commands will return only lines that begin with test?Category: LinuxAuthor "LinuxQuestions"Which of the following commands will return only lines that begin with test?
Linux Questions Staff asked 1 year ago

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

About the author