ExamGecko
Question list
Search
Search

Question 84 - 101-500 discussion

Report
Export

Which of the following commands replaces each occurrence of 'bob' in the file letter with 'Bob' and writes the result to the file newletter?

A.
sed '/bob/Bob' letter > newletter
Answers
A.
sed '/bob/Bob' letter > newletter
B.
sed s/bob/Bob/ letter < newletter
Answers
B.
sed s/bob/Bob/ letter < newletter
C.
sed's/bob/Bob' letter > newletter
Answers
C.
sed's/bob/Bob' letter > newletter
D.
sed 's/bob/Bob/g' letter > newletter
Answers
D.
sed 's/bob/Bob/g' letter > newletter
E.
sed 's/bob, Bob/' letter > newletter
Answers
E.
sed 's/bob, Bob/' letter > newletter
Suggested answer: D
asked 18/09/2024
Camilo Garrido Lizana
31 questions
User
Your answer:
0 comments
Sorted by

Leave a comment first