1.

We can perform sorting on secondary key also using sort command.(a) True(b) FalseThis question was addressed to me by my college professor while I was bunking the class.This intriguing question originated from Sort Command topic in chapter Simple Filters of Unix

Answer»

Correct answer is (a) True

To elaborate: We can sort on more than one FIELDS i.e. we can provide a secondary KEY to sort. For example, if the primary key is the THIRD field and the secondary key is the second field, then we have to specify for every -k option, where the sort ENDS. This is done in the FOLLOWING manner:



Discussion

No Comment Found

Related InterviewSolutions