bug-coreutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#8040: join 5.97 bug


From: Pádraig Brady
Subject: bug#8040: join 5.97 bug
Date: Tue, 15 Feb 2011 00:13:52 +0000
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.1.8) Gecko/20100227 Thunderbird/3.0.3

On 14/02/11 23:45, Batson, Brannon wrote:
> 
> File a:
> 10 A
> 1  B
> 
> File b:
> 1
> 
> $ join b a
> <nada>
> 
> $ join -v 1 d c
> 1
> 
> files a & b are both sorted lexicographically  (according to 'sort', anyway). 
> The problem is that the join lexicographic '<' operator disagrees with sort's.
> 
> Sorry if this bug has been found like a thousand times before, couldn't find 
> it via 30s of googling.

Newer versions of join are more helpful.

$ join b a
join: file 2 is not in sorted order

$ join b <(sort -k 1b,1 a)
1 B

cheers,
Pádraig





reply via email to

[Prev in Thread] Current Thread [Next in Thread]