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?
Sign in or unlock 101-500 to reveal the answer and full explanation for question #360. The question stem and answer options stay visible for context.
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
Unlock 101-500 to see the answer
You've previewed enough free 101-500 questions. Unlock 101-500 for full answers, explanations, the timed quiz mode, progress tracking, and the master PDF. Question stem and options stay visible so you can still see what's on the exam.
Topics
#sed substitution#text processing#command flags#pattern matching