Re: sort on multicolumn files

2006-02-20 Thread Philip Rowlands
On Thu, 16 Feb 2006, P Kensche wrote: I use 4.5.3 from coreutils 5.93 and have a problem with sort. This is a common issue, due to certain locale settings which influence sorting behaviour. Please see:

sort on multicolumn files

2006-02-20 Thread P Kensche
Hello, I use 4.5.3 from coreutils 5.93 and have a problem with sort. File a: a-1 1 a 0 is sorted by sort -k 1 a to a 0 a-1 1 In contrast file b: a a B a-1 b G is sorted by sort -k 1 b to a-1 b G a a

Re: sort on multicolumn files

2006-02-20 Thread Paul Eggert
P Kensche [EMAIL PROTECTED] writes: is sorted by sort -k 1 a In general, that's not correct since it sorts by fields 1 through N, whereas 'join' sorts only by field 1. You need to use sort -k 1b,1 instead. So, as far as I can tell, you haven't found a bug. However, `-k 1b,1' isn't