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.