PrepAway - Latest Free Exam Questions & Answers

Which of the following commands replaces each occurrence of ‘bob’ in the file letter with ‘B

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

PrepAway - Latest Free Exam Questions & Answers

A.
sed ‘s/bob/Bob/g’ letter > newletter

B.
sed ‘s/bob, Bob/’ letter > newletter

C.
sed ‘s/bob/Bob’ letter > newletter

D.
sed ‘/bob/Bob’ letter > newletter

E.
sed s/bob/Bob/ letter < newletter

Explanation:

One Comment on “Which of the following commands replaces each occurrence of ‘bob’ in the file letter with ‘B


Leave a Reply