nerdexam
LPI

101-350 · Question #44

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. See the full explanation below for the reasoning.

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

(44 responses)
  • A
    7% (3)
  • B
    5% (2)
  • C
    73% (32)
  • D
    16% (7)

Community Discussion

No community discussion yet for this question.

Full 101-350 Practice