1.sort foo | uniq –u
2.sort -u foo | uniq -d
3.sort foo | uniq –c
4.sort foo | uniq –I
Answer:1