LPI
101-500 · 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. You've hit your Sonnet limit · resets Jun 8, 9am (UTC)
GNU and Unix Commands
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
(58 responses)- A86% (50)
- B2% (1)
- C7% (4)
- D3% (2)
- E2% (1)
Explanation
You've hit your Sonnet limit · resets Jun 8, 9am (UTC)
Topics
#grep command#case-insensitive search#command flags#text search
Community Discussion
No community discussion yet for this question.