bug-coreutils
[Top][All Lists]
Advanced

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

Ad: Re: join ?


From: Maarten . Vanneste
Subject: Ad: Re: join ?
Date: Fri, 17 Oct 2008 13:06:13 +0200

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 <address@hidden> 
17/10/2008 13:13

Til
address@hidden
cc
address@hidden
Emne
Re: join ?






address@hidden 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, address@hidden
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.


reply via email to

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