What is the purpose of sed command

  1. A Serial Editor

  2. A Stream Editor

  3. A shredder tool

  4. All the above


Correct Option: B

AI Explanation

To answer this question, let's go through each option to understand why it is correct or incorrect:

Option A) A Serial Editor - This option is incorrect because sed is not a serial editor. It is not used for editing serial data.

Option B) A Stream Editor - This option is correct because sed is primarily used as a stream editor. It is a powerful command-line tool that processes text files, line by line, and performs various operations such as searching, replacing, deleting, and inserting text.

Option C) A shredder tool - This option is incorrect because sed is not a shredder tool. A shredder tool is used to securely delete files and data, while sed is used for text manipulation.

Option D) All the above - This option is incorrect because only option B is correct. Sed is not a serial editor or a shredder tool.

The correct answer is B) A Stream Editor. This option is correct because sed is primarily used as a stream editor for text manipulation.

Find more quizzes: