bug-coreutils
[Top][All Lists]
Advanced

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

Re: join problem


From: Eric Blake
Subject: Re: join problem
Date: Fri, 04 Aug 2006 06:18:24 -0600
User-agent: Thunderbird 1.5.0.5 (Windows/20060719)

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

Please keep replies on the list, so that others may see the conclusion or
add to this thread.

According to Thomas Turner on 8/3/2006 12:49 PM:
>> Are you sure they are sorted correctly for your locale?  The difference
>> may be explained by different locales on your two machines.  Try
>> LC_ALL=C before sort and join to ensure you are in the POSIX locale,
>> to see if that makes a difference.
>
> Thank you very much for the reply.  I am afraid that didn't do it,
> however.  The problem involves 1, 10 ,100, etc.  Join seems to have
> trouble with these numbers.  If you try to join the attached files, you
> will see what I mean.
> 
> Any more advice?
> Sure appreciate the help...I have run out of other people to pester
> about this enigma.
> 
> Tom

According to Thomas Turner on 8/3/2006 12:51 PM:
> ahh, perhaps a breakthrough:  your fix DOES work if I use default sort,
> and doesn't work if I use sort -n
>
> ??
>

Yes, join currently does not have a way to specify non-default sorting
options (such as sort -n), and the idea has been proposed in the past to
enhance join to understand the same types of sorts that sort can produce.

However, in the meantime, you can always try 'sort | join | sort -n' to
get the joined output back in numerical order.

- --
Life is short - so eat dessert first!

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

iD8DBQFE0zsQ84KuGfSFAYARAqMZAKC7PCFRtN5gafPOrj9KgRWOIm7wPgCgjKiz
IjSmLVDiXk89VUmTikRls0k=
=oCaA
-----END PGP SIGNATURE-----




reply via email to

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