QuestionQ32

VerifiedEssential Commands

Which of the following commands replaces every occurrence of bob in the file letter with Bob and writes the output to the file newletter?

Explanation

In sed, s/bob/Bob/g performs a substitution of bob with Bob globally on each line. Redirecting standard output with > newletter saves the transformed content in newletter.

Community Discussion

No comments yet. Be the first to start the discussion!