Which of the following will be used to print lines containing ‘manager’ in emp.lst?
(a) awk ‘/manager/ { print }’ emp.lst
(b) awk ‘/manager { print }’ emp.lst
(c) awk ‘/manager/ { print } emp.lst
(d) awk ‘manager { print }’ emp.lst
This question was posed to me by my school principal while I was bunking the class.
I'm obligated to ask this question of Various Operations using Awk Command topic in section Awk – An Advanced Filter & Perl – The Master Manipulator of Unix