LPI
101-500 · Question #135
When should grep -F or the fgrep command be used to search the content of text files?
The correct answer is C. When the text being searched for does not contain any regular expression patterns. You've hit your Sonnet limit · resets Jun 8, 9am (UTC)
GNU and Unix Commands
Question
When should grep -F or the fgrep command be used to search the content of text files?
Options
- AWhen files need to be searched that contain non-ASCII text.
- BWhen only the presence of the search pattern needs to be reported and not every line that
- CWhen the text being searched for does not contain any regular expression patterns.
- DWhen the text files will be searched multiple times. Subsequent calls to fgrep will run faster.
How the community answered
(46 responses)- B4% (2)
- C93% (43)
- D2% (1)
Explanation
You've hit your Sonnet limit · resets Jun 8, 9am (UTC)
Topics
#grep#fgrep#literal string search#regular expressions
Community Discussion
No community discussion yet for this question.