May 2018
Beginner
332 pages
7h 28m
English
The following are a few examples showing the usage of the uniq command:
$ cat test
aa
aa
cc
cc
bb
bb
yy
zz
$ uniq test
aa
cc
bb
yy
zz
$ uniq -d test
aa
cc
bb
$ uniq -c test
2 aa
2 cc
2 bb
1 yy
1 zz