Which of the following commands will output all of the lines with the name Fred in upper or lower case but not the word red from the file data_file?

Which of the following commands will output all of the lines with the name Fred in upper or
lower case but not the word red from the file data_file? (Select TWO correct answers)

Which of the following commands will output all of the lines with the name Fred in upper or
lower case but not the word red from the file data_file? (Select TWO correct answers)

A.
grep -i fred data_file

B.
grep -v fred data_file

C.
grep ‘[f]red’ data_file

D.
egrep fred data_file

E.
grep ‘[Ff]red’ data_file



Leave a Reply 2

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


Raghunath Katragadda

Raghunath Katragadda

A