What is the advantage of grep over awk with reference to decision-making scripts?

  1. grep shows different values for $? while awk always shows $?=0

  2. grep is faster and works on rows level

  3. awk can only work on field level

  4. grep has -i option which can be used for ignoring case.


Correct Option: A

Find more quizzes: