LPI
101-400 · Question #342
Which of the following commands will find the string foo in the file filel.txt, regardless of foo being in upper or lowercase letters?
The correct answer is A. cat file1.txt | grep -i foo. See the full explanation below for the reasoning.
Question
Which of the following commands will find the string foo in the file filel.txt, regardless of foo being in upper or lowercase letters?
Options
- Acat file1.txt | grep -i foo
- Bcat file1.txt >grep -n foo
- Cgrep -i foo | file1.txt
- Dgrep -n file1.txt < foo
- Egrep -n foo file1.txt
How the community answered
(23 responses)- A83% (19)
- B4% (1)
- C9% (2)
- E4% (1)
Community Discussion
No community discussion yet for this question.