CompTIA
LX0-101 · Question #392
An administrator has created a really long letter and after the administrator is done, notices that the name "Bob" has been used many times. The administrator forgot to capitalize it in many…
The correct answer is D. sed 's/bob/Bob/g' letter > newletter. See the full explanation below for the reasoning.
Question
An administrator has created a really long letter and after the administrator is done, notices that the name "Bob" has been used many times. The administrator forgot to capitalize it in many instances. Which of the following commands would replace "bob" with "Bob" in all instances and generate a new letter for printing?
Options
- Ased '/bob/Bob' letter > newletter
- Bsed s/bob/Bob/ letter < newletter
- Csed 's/bob/Bob' letter > newletter
- Dsed 's/bob/Bob/g' letter > newletter
- Esed 's/bob, Bob/' letter > newletter
How the community answered
(44 responses)- A2% (1)
- B7% (3)
- C2% (1)
- D73% (32)
- E16% (7)
Community Discussion
No community discussion yet for this question.