Hmmm, Thanks for the very quick reply ! Indeed, I manage to get it working 
with sort (no specifications). I sorted it before as well, to no avail, 
but then I used sort -n or -g.

Have a nice weekend !
Maarten





Andreas Schwab <[EMAIL PROTECTED]> 
17/10/2008 13:13

Til
[EMAIL PROTECTED]
cc
bug-coreutils@gnu.org
Emne
Re: join ?






[EMAIL PROTECTED] writes:

> I have the following question about the join command. I thought join 
would 
> merge the columns of different files when the same index or value is 
> present in the specified columns.

The input must be sorted on the join filed.

> For example, I created the following files:
> echo 84 150 | gawk '{for (i=$1;i<=$2;i++) printf "%i %s\n", i,"A"}' > 

$ echo 84 150 | gawk '{for (i=$1;i<=$2;i++) printf "%i %s\n", i,"A"}' | 
sort -c -k 1b,1
sort: -:17: disorder: 100 A

Andreas.

-- 
Andreas Schwab, SuSE Labs, [EMAIL PROTECTED]
SuSE Linux Products GmbH, Maxfeldstraße 5, 90409 Nürnberg, Germany
PGP key fingerprint = 58CA 54C7 6D53 942B 1756  01D3 44D5 214B 8276 4ED5
"And now for something completely different."





_____________________________
Neither the confidentiality nor the integrity of this message can be 
guaranteed following transmission on the Internet.  The addressee should 
consider this risk and take full responsibility for use of this message. 
This e-mail has been swept by Norman antivirus software.
_______________________________________________
Bug-coreutils mailing list
Bug-coreutils@gnu.org
http://lists.gnu.org/mailman/listinfo/bug-coreutils

Reply via email to