Output of the SED command? sed "s/happy/enchanted/g" chap1

  1. deletes the lines starting with happy.

  2. replaces each occurrence of the word happy found in the file chap1 with the word enchanted.

  3. displays each line in the file chap1 that contains the word happy.

  4. None.


Correct Option: B

Find more quizzes: