What command will remove duplicate lines from a sorted file?

What command will remove duplicate lines from a sorted file?

What command will remove duplicate lines from a sorted file?

A.
filter

B.
trim

C.
uniq

D.
wc

Explanation/Reference:
uniq – remove duplicate lines from a sorted file

wc – wordcount
trim – remove whitespaces
filter is not standard unix filter command



Leave a Reply 0

Your email address will not be published. Required fields are marked *