Which Unix command is used for locating repeated and non-repeated lines?

24 views
  • cut
  • paste
  • uniq (Correct Answer)
  • sort

Explanation

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.

Comments (0)

No comments yet. Be the first to comment!

Want to practice more?

Explore thousands of MCQs across every exam category on Exams Nepal.

Find More MCQs