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

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

1.sort foo | uniq –u

2.sort -u foo | uniq -d

3.sort foo | uniq –c

4.sort foo | uniq –I


Search
R4R Team
R4Rin Top Tutorials are Core Java,Hibernate ,Spring,Sturts.The content on R4R.in website is done by expert team not only with the help of books but along with the strong professional knowledge in all context like coding,designing, marketing,etc!