Where line 30 miss. I'm reading this old post: Join command.
Where a solutionn with awk is suggested.
I mean is possible get the same result with join command?
wrt the join - if you sort your files before running join it will work - little gotcha
from the man page:
file1 and file2 must be sorted in increasing collating
sequence as determined by LC_COLLATE on the fields on which
they are to be joined, normally the first in each line (see
sort(1)).
about the join command.
I read that Lesser-known Linux commands: join, paste, and sort
the problem is that the 2 files doesn't have a common field. So a solution could be to use the nl tool. (as it suggest).
but i don't understand why if i remove the line 8, it works. there are still line 1, 2 and 6 that don't match.