I'm trying to join this file:
1|304500001||1|0|304500001|(...)
2|304500002||2|0|304500002|(...)
3|304500003||3|0|304500003|(...)
4|304500004||4|0|304500004|(...)
5|304500005||5|0|304500005|(...)
6|304500006||6|0|304500006|(...)
7|304500007||7|0|304500007|(...)
9|304500008||9|0|304500008|(...)
11|304500009||11|0|304500009|(...)
(...)
with this one:
1|304500001|3|105|2956318|(...)
2|304500002|3|105|2057057|(...)
3|304500003|1|105|2980777|(...)
4|304500004|3|105|2980786|(...)
5|304500005|1|105|2066079|(...)
6|304500006|3|105|2057060|(...)
7|304500007|3|105|2981167|(...)
9|304500008|3|105|2981731|(...)
11|304500009|3|105|2981734|(...)
(...)
Strangely the result of join -t "|" file1 file2 if this:
1|304500001||1|0|304500001|(...)
2|304500002||2|0|304500002|(...)
3|304500003||3|0|304500003|(...)
4|304500004||4|0|304500004|(...)
5|304500005||5|0|304500005|(...)
6|304500006||6|0|304500006|(...)
7|304500007||7|0|304500007|(...)
9|304500008||9|0|304500008|(...)
90|304500074||90|0|304500074|(...)
92|304500075||92|0|304500075|(...)
93|304500076||93|0|304500076|(...)
(...)
Troughtout the rest of the file, it will only join lines starting by 9(9). I've tried various sorting before joining the files but I can't seem to get a valid join. What's happening?
Thanks for any help,
Romeu
1|304500001||1|0|304500001|(...)
2|304500002||2|0|304500002|(...)
3|304500003||3|0|304500003|(...)
4|304500004||4|0|304500004|(...)
5|304500005||5|0|304500005|(...)
6|304500006||6|0|304500006|(...)
7|304500007||7|0|304500007|(...)
9|304500008||9|0|304500008|(...)
11|304500009||11|0|304500009|(...)
(...)
with this one:
1|304500001|3|105|2956318|(...)
2|304500002|3|105|2057057|(...)
3|304500003|1|105|2980777|(...)
4|304500004|3|105|2980786|(...)
5|304500005|1|105|2066079|(...)
6|304500006|3|105|2057060|(...)
7|304500007|3|105|2981167|(...)
9|304500008|3|105|2981731|(...)
11|304500009|3|105|2981734|(...)
(...)
Strangely the result of join -t "|" file1 file2 if this:
1|304500001||1|0|304500001|(...)
2|304500002||2|0|304500002|(...)
3|304500003||3|0|304500003|(...)
4|304500004||4|0|304500004|(...)
5|304500005||5|0|304500005|(...)
6|304500006||6|0|304500006|(...)
7|304500007||7|0|304500007|(...)
9|304500008||9|0|304500008|(...)
90|304500074||90|0|304500074|(...)
92|304500075||92|0|304500075|(...)
93|304500076||93|0|304500076|(...)
(...)
Troughtout the rest of the file, it will only join lines starting by 9(9). I've tried various sorting before joining the files but I can't seem to get a valid join. What's happening?
Thanks for any help,
Romeu