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? (Choose two)

Posted by: Pdfprep Category: LFCS Tags: , ,

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? (Choose two)
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

Answer: DE

Leave a Reply

Your email address will not be published.