Vidyalelo
Computer Science · Q914

Linux

Engineering and GATE · Computer Science · question 914

Q914

How do you remove duplicate lines from the file foo using uniq?

A.
sort foo | uniq –u
Answer
B.
sort -u foo | uniq -d
C.
sort foo | uniq –c
D.
sort foo | uniq –I

Answer: Option A

Solution

Answer: Option A
No explanation is given for this question Let's Discuss on Board