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

Đăng Khánh

New member
Which command is used for locating repeated and non-repeated lines?
A. sort
B. uniq
C. cut
D. paste
 
Answer: b
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.
 

Tìm kiếm

Back
Top