1.

Which command is used for locating repeated and non-repeated lines?(a) sort(b) uniq(c) cut(d) pasteThis question was addressed to me by my college director while I was bunking the class.This key question is from Unique and tr Command in section Simple Filters of Unix

Answer»

The correct choice is (b) uniq

To elaborate: When we concatenate or MERGE files, we can encounter the PROBLEM of duplicate entries creeping in. UNIX offers a special command (uniq) which can be USED to handle these duplicate entries. We can ALSO use the sort -U command for doing the same piece of work.



Discussion

No Comment Found

Related InterviewSolutions