I am 2 csv files looking like this:
id, name, job
1, bob, fireman
3, alice, nurse
7, peter, policeman
...
And:
id, name, age
2, john, 26
4, craig, 32
5, mary, 45
6, lucy, 23
...
As you can see, they are both sorted by ids and the ids missing in the first csv are actually in the second csv.
Is it possible via a command line tool such as awk
or something similar to merge these 2 csv into one looking like this?
id, name, job, age
1, bob, fireman,
2, john, , 26
3, alice, nurse,
4, craig, , 32
...
Many thanks for your help?