1.

uniq command requires a sorted file as input.(a) True(b) FalseI had been asked this question during an interview for a job.My question is taken from Unique and tr Command topic in chapter Simple Filters of Unix

Answer»

Correct OPTION is (a) True

Easiest explanation: uniq command is USED for locating REPEATED and non-repeated entries. But the most important requirement for using uniq command is, the FILE should be sorted. For EXAMPLE,



Discussion

No Comment Found

Related InterviewSolutions