To select lines containing gupta and agarwal, which command will be used?
(a) sed -n ‘/gupta/,/agarwal/p’ emp.lst
(b) sed -n ‘/gupta/agarwal/p’ emp.lst
(c) sed ‘/gupta | agarwal’p’ emp.lst
(d) sed -n
This question was posed to me by my school principal while I was bunking the class.
Question is from sed command in division Filters using Regular Expressions of Unix