1.

The command $ sed -n ‘$p’ emp.lst will display the last line.(a) True(b) FalseI had been asked this question by my school principal while I was bunking the class.This intriguing question comes from sed command topic in portion Filters using Regular Expressions of Unix

Answer»

The correct option is (a) True

Explanation: If we want to SELECT the LAST LINE of the file, we can either provide the line number of the file or it is more CONVENIENT to USE $ symbol.



Discussion

No Comment Found

Related InterviewSolutions