I have two files that I would like to join. Here are samples of the two files:
file1:
99998 543
99999 333
100000 215
100003 345
file2:
99998 2009-05
100000 2009-04
100000 2009-04
100001 2009-03
I issue this command:
join -t " " file1 file2 | sort -un > file3
This is the result:
99998 2009-05 543
It doesn't seem to want to join anything after 99998. It should look like this:
99998 2009-05 543
100000 2009-04 215
Thinking that there was more than one space as a delimiter between columns, I used sed to replace any white space with colons ), then did a join with that as the delimiter and still it stops at 99998.
I am really at a loss as to why this is happening. Does it have anything to do with the numerical values or something? Is there a maximum number that join will actually look at? I doubt it, as I cut the files up and just sorted on numbers over 100000 and it worked fine. So, it has something to do with going from 99998 to 100000, but I can't see the problem.
file1:
99998 543
99999 333
100000 215
100003 345
file2:
99998 2009-05
100000 2009-04
100000 2009-04
100001 2009-03
I issue this command:
join -t " " file1 file2 | sort -un > file3
This is the result:
99998 2009-05 543
It doesn't seem to want to join anything after 99998. It should look like this:
99998 2009-05 543
100000 2009-04 215
Thinking that there was more than one space as a delimiter between columns, I used sed to replace any white space with colons ), then did a join with that as the delimiter and still it stops at 99998.
I am really at a loss as to why this is happening. Does it have anything to do with the numerical values or something? Is there a maximum number that join will actually look at? I doubt it, as I cut the files up and just sorted on numbers over 100000 and it worked fine. So, it has something to do with going from 99998 to 100000, but I can't see the problem.