LPI Exam Questions

Which of the following commands changes all occurrences…

Which of the following commands changes all occurrences of the word “bob” in file data to
“Bob” and prints the result to standard output?

A.
sed’/bob/Bob’ data

B.
sed’s/bob/Bob/g’ data

C.
sed’s/bob/Bob/’ data

D.
sed’/bob/Bob/’ data

E.
sed’s/bob,Bob/’ data