[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: bug in join command
From: |
Eric Blake |
Subject: |
Re: bug in join command |
Date: |
Thu, 26 Feb 2009 06:12:30 -0700 |
User-agent: |
Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.19) Gecko/20081209 Thunderbird/2.0.0.19 Mnenhy/0.7.6.666 |
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
According to Laurent Manchon on 2/25/2009 1:20 PM:
> -- Hi,
>
> i have used a join command as: "join -1 1 -2 1 -o
> 2.1,2.2,2.3,2.4,2.5,2.6,2.7,2.8,2.9 file.test V.test"
> with the files i send you in attachment(files.zip).
> This command returns only 55 lines.
> The real number in the output must be 1031 lines.
> What's wrong ?
It's likely that your files aren't properly sorted. While I didn't
validate your attachments, 'join --help' is explicit that:
Important: FILE1 and FILE2 must be sorted on the join fields.
E.g., use `sort -k 1b,1' if `join' has no options.
Additionally, if you upgrade to coreutils 7.1 (the latest stable version),
join has an option to output a warning if it encounters unsorted input.
- --
Don't work too hard, make some time for fun as well!
Eric Blake address@hidden
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (Cygwin)
Comment: Public key at home.comcast.net/~ericblake/eblake.gpg
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
iEYEARECAAYFAkmmlT4ACgkQ84KuGfSFAYBJCACeIQGgbtuQb00Ki+Ejfg3dKE6a
g+kAniqJwWa92HvkH26CvARltJ0hJWAp
=3xIc
-----END PGP SIGNATURE-----