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

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

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

About the author