bug-coreutils
[Top][All Lists]
Advanced

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

Re: Ad: Re: join


From: Eric Blake
Subject: Re: Ad: Re: join
Date: Tue, 13 Mar 2007 20:42:05 -0600
User-agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.0.10) Gecko/20070221 Thunderbird/1.5.0.10 Mnenhy/0.7.4.666

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Please keep replies on the list.

According to address@hidden on 3/13/2007 8:18 AM:
> Hello,
> 
> Thanks for your quick reply !
> 
> I am running cygwin on a standard PC configuration. Have installed the
> entire cygwin package a few months ago. The manual says join version 5.97
> from May 2006.

You may want to upgrade - cygwin currently ships with coreutils 6.7 (the
latest stable version).  However, since I maintain the cygwin port, I can
state with certainty that the problem is not with lacking large file
support, and also that I cannot reproduce your problem.

> My two data files are not too large though: both files are
> less than 10 MB. I have checked once more on the sorting, by running a sort
> -n or -g prior to join, but it stops at the same place in the file. The
> final file is in fact only 12 MB.

That explains the problem then.  join currently has no way to recognize
files sorted by non-default means, such as 'sort -n' output, so it is back
to my original assumption that your files weren't truly sorted in the
manner expected by join.  It is an item on the TODO list to make join
recognize all the different sorting styles that sort can output.
Meanwhile, the solution is to 'sort' your files, 'join' the
lexicographically (and not numerically) sorted output, then 'sort -n' the
joined output into the desired numeric listing.

- --
Don't work too hard, make some time for fun as well!

Eric Blake             address@hidden
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.5 (Cygwin)
Comment: Public key at home.comcast.net/~ericblake/eblake.gpg
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFF92D984KuGfSFAYARAtNQAJ9Guzf3O4jxHc/7I9qIOq1cK9T8NQCeKDcR
SRjwJ6h+SxVO8h0ctTWiY44=
=/bTE
-----END PGP SIGNATURE-----




reply via email to

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