Paul Eggert <[EMAIL PROTECTED]> wrote:

> Jim Meyering <[EMAIL PROTECTED]> writes:
>
>> +Note: while uniq can be useful even with unsorted input, in most 
>> applications\n\
>> +the input is sorted in a manner consistent with field-selection options.\n\
>> +E.g., use `sort' if `uniq' uses no such option (or simply use `sort -u');\n\
>> +use `sort -k 3b' with uniq -f2.\n\
>
> That's not quite right, is it?  With -k 3b, 'sort' ignores leading
> blanks in the 3rd field; but with -f2, 'uniq' treats those blanks as
> significant.
>
> Also, the details about field selection get in the way of the basic idea.
> How about the following wording instead?
>
>   Note: 'uniq' does not detect repeated lines unless they are adjacent.
>   You may want to sort the input first, or use `sort -u' without `uniq'.

Better and shorter.
Applied.  Thanks.


_______________________________________________
Bug-coreutils mailing list
Bug-coreutils@gnu.org
http://lists.gnu.org/mailman/listinfo/bug-coreutils

Reply via email to