nerdexam
LPI

101-500 · Question #360

101-500 Question #360: Real Exam Question with Answer & Explanation

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

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.

Full 101-500 Practice