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
B) sed s/bob/Bob/ letter < newletter
C) sed 's/bob/Bob' letter > newletter
D) sed 's/bob/Bob/g' letter > newletter
E) sed 's/bob, Bob/' letter > newletter
Correct Answer:
Verified
Q22: Which of the following commands displays the
Q23: What is the maximum niceness value that
Q24: Which of the following commands is used
Q25: Immediately after deleting 3 lines of text
Q26: Which of the following commands kills the
Q28: Which of the following characters can be
Q29: What is the purpose of the Bash
Q30: What does the symbol within regular expressions
Q31: Which of the following commands moves and
Q32: In the vi editor, how can commands
Unlock this Answer For Free Now!
View this answer and more for free by performing one of the following actions
Scan the QR code to install the App and get 2 free unlocks
Unlock quizzes for free by uploading documents