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?

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?

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?

A.
sed –in-place -e "s/list/LIST/" myfile.txt

B.
sed -e "s/list/LIST/" myfile.txt

C.
sed –in-place -e "/list/LIST/" myfile.txt

D.
sed -e "/list/LIST/" myfile.txt



Leave a Reply 2

Your email address will not be published. Required fields are marked *


benzen

benzen

sed -e “s/list/LIST/g” myfile.txt

Marten

Marten

Answer B or Answer D should be changed to “s/list/LIST/g”