Câu 38: LFCS: Linux Foundation Certified System Administrator
Which of the following commands replaces each occurrence of 'bob' in the file letter with 'Bob' and writes the result to the file newletter?
Nội dung câu hỏi
Which of the following commands replaces each occurrence of 'bob' in the file letter with 'Bob' and writes the result to the file newletter?
Các lựa chọn
Đáp án được giữ gọn theo nhãn A, B, C, D trong phần bình chọn tương tác.
- 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 — đáp án hiện tại
- E. sed 's/bob, Bob/' letter > newletter
Cộng đồng
0 bình luận công khai. Tên thành viên được ẩn một phần.
Chưa có bình luận. Mở giao diện tương tác để bắt đầu thảo luận.