[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Bug in uniq
From: |
Eric Blake |
Subject: |
Re: Bug in uniq |
Date: |
Sat, 31 Dec 2005 20:15:54 +0000 |
> I am getting different result doing:
>
> $ grep "Frame of R" /tmp/uniq.bug| sort | uniq
>
>
> $ grep "Frame of R" /tmp/uniq.bug| uniq | sort
Not a bug. If you re-read 'uniq --help', it will become
apparent that POSIX requires uniq to discard only identical
lines which are next to one another. In other words, you
need to sort before calling uniq if you don't want duplicates.
--
Eric Blake
- Bug in uniq, Mathieu Malaterre, 2005/12/31
- Re: Bug in uniq,
Eric Blake <=