Linux/uniq

List unique line items
cat file | uniq

Show duplicate line items only
cat file | uniq -d

Show counts of line items
cat file | uniq -c