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
Which of the following commands replaces each occurrence of 'bob' in the file letter with 'Bob' and writes the result to
-
answerhappygod
- Site Admin
- Posts: 899604
- Joined: Mon Aug 02, 2021 8:13 am
Which of the following commands replaces each occurrence of 'bob' in the file letter with 'Bob' and writes the result to
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!