bug-coreutils
[Top][All Lists]
Advanced

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

join -e -o


From: PushMePullMe
Subject: join -e -o
Date: Mon, 12 Nov 2007 11:17:24 -0500
User-agent: Thunderbird 2.0.0.5 (X11/20070727)

Hi,

I think I found a bug in join.  I'm using Fedora 7.  Here is my example:

address@hidden Temp]$ cat test.left
1994-01-01,101
1994-01-02,102
1994-01-03,103
1994-01-04,104
1994-01-05,105
address@hidden Temp]$ cat test.mid
1994-01-03,203
1994-01-04,204
1994-01-05,205
address@hidden Temp]$ join -a1 -t, -e" " test.left test.mid
1994-01-01,101
1994-01-02,102
1994-01-03,103,203
1994-01-04,104,204
1994-01-05,105,205
address@hidden Temp]$ join -a1 -t, -o 1.1 1.2 2.2 -e" " test.left test.mid
1994-01-01,101,
1994-01-02,102,
1994-01-03,103,203
1994-01-04,104,204
1994-01-05,105,205

The difference between the two executions is the -o option. Even with the -o option, I'm thinking the output should be the same. But the first execution is missing commas at the end of the first two output records.

The second execution has the results I'm looking for, but another file I need to join has a hundred fields to be passed to output, hahaha.




reply via email to

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