Which of the following is not a filter?
A. cat
B. grep
C. wc
D. sort
E. None of the above
Answer: Option A
Solution (By Examveda Team)
Option A: catThis option is correct. The cat (concatenate) command in Unix is used to read and concatenate files and print them to the standard output. It does not filter data but rather displays the contents of files or concatenates them. Therefore, it is not considered a filter.
Option B: grep
This option is incorrect. The grep command is a filter that searches for patterns within text. It reads input and outputs only the lines that match the given pattern.
Option C: wc
This option is incorrect. The wc (word count) command is a filter that counts the number of lines, words, and characters in a file or input stream. It processes the input data and produces summarized output, making it a filter.
Option D: sort
This option is incorrect. The sort command is a filter that sorts the lines of input data based on specified criteria. It reads input data, processes it, and outputs the sorted result, thus acting as a filter.
Option E: None of the above
This option is incorrect. As explained above, the cat command is not a filter, while the other commands listed are filters.
Conclusion:
The cat command is not a filter, making Option A: cat the correct answer.

Join The Discussion