nerdexam
Oracle

1Z0-876 · Question #153

You have a parts list, and you need to search it for all parts that contain the string V1 or the string R3. You decide to use a grep utility to search the file. Which grep command will you use?

The correct answer is C. egrep 'V1|R3' ./parts_list. See the full explanation below for the reasoning.

Question

You have a parts list, and you need to search it for all parts that contain the string V1 or the string R3. You decide to use a grep utility to search the file. Which grep command will you use?

Options

  • Agrep -F 'V1|R3' ./parts_list
  • Bfgrep 'V1|R3' ./parts_list
  • Cegrep 'V1|R3' ./parts_list
  • Dgrep 'V1|R3' ./parts_list

How the community answered

(41 responses)
  • A
    2% (1)
  • B
    10% (4)
  • C
    83% (34)
  • D
    5% (2)

Community Discussion

No community discussion yet for this question.

Full 1Z0-876 Practice