This is not a bug in uniq.
It detects identical lines only if they're adjacent.
One way to remove all duplicates is to sort first:

  sort myfile |uniq

Or use sort's -u option:

  sort -u myfile

Matt Wolfe <[EMAIL PROTECTED]> writes:
| All,
|
| First of all thanks for the great product!
|
| Second, I believe that I've found a bug in the "uniq" program.  What
| happens is that it's reporting identical lines as being unique.  For
| example:
...
| $ cat myfile | uniq -c
|       1 SYNCHARDWARE (0)
|       1 SYNCHARDWARE (1)
|       1 SYNCHARDWARE (0)
|       1 SYNCHARDWARE (1)
...

Reply via email to