Which of the following commands will output all of the lines that contain either the string Fred or fred?

Which of the following commands will output all of the lines that contain either the string Fred or fred? (Choose TWO correct answers.)
A. grep -v fred data_file
B. grep ‘[f]red’ data_file
C. egrep fred data_file
D. grep ‘[Ff]red’ data_file
E. grep -i fred data_file

Download Printable PDF. VALID exam to help you PASS.

Leave a Reply

Your email address will not be published. Required fields are marked *


The reCAPTCHA verification period has expired. Please reload the page.