1.

Which option is used for sorting a file according to primary key?(a) -t(b) -k(c) -n(d) -nThe question was asked in an online quiz.I would like to ask this question from Sort Command topic in portion Simple Filters of Unix

Answer»

Correct choice is (b) -k

Explanation: sort command PROVIDES an option for SORTING file according to our specified field. For this purpose, we have to use -k along with the field NUMBER (based on which we WANT to perform sorting). For example, to perform sorting on second field (name):



Discussion

No Comment Found

Related InterviewSolutions