LPI
101-400 · Question #423
Which of the following commands changes all occurrences of the word "bob" in file data to "Bob" and prints the result to standard output?
The correct answer is B. sed`s/bob/Bob/g' data. See the full explanation below for the reasoning.
Question
Which of the following commands changes all occurrences of the word "bob" in file data to "Bob" and prints the result to standard output?
Options
- Ased`/bob/Bob' data
- Bsed`s/bob/Bob/g' data
- Csed`s/bob/Bob/' data
- Dsed`/bob/Bob/' data
- Esed`s/bob,Bob/' data
How the community answered
(21 responses)- B76% (16)
- C10% (2)
- D5% (1)
- E10% (2)
Community Discussion
No community discussion yet for this question.