Linux/uniq

From Omnia
Jump to navigation Jump to search

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