LPI
101-500 · Question #360
Which of the following commands will replace every instance of the word list with LIST from the file myfile.txt and print the results on the screen?
The correct answer is B. sed -e "s/list/LIST/" myfile.txt. You've hit your Sonnet limit · resets Jun 8, 9am (UTC)
GNU and Unix Commands
Question
Which of the following commands will replace every instance of the word list with LIST from the file myfile.txt and print the results on the screen?
Options
- Ased --in-place -e "s/list/LIST/" myfile.txt
- Bsed -e "s/list/LIST/" myfile.txt
- Csed --in-place -e "/list/LIST/" myfile.txt
- Dsed -e "/list/LIST/" myfile.txt
How the community answered
(50 responses)- A2% (1)
- B92% (46)
- C4% (2)
- D2% (1)
Explanation
You've hit your Sonnet limit · resets Jun 8, 9am (UTC)
Topics
#sed substitution#text processing#command flags#pattern matching
Community Discussion
No community discussion yet for this question.