Linux/uniq

From Omnia
Jump to navigation Jump to search
The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.

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