I have a reference file with only one column that goes like this:
file1:
a
b
c
d
e
In a second csv file I have several column. In the first of these column there are some of the value present in the reference file:
file2:
a;34;42;23;45;1
c;3;2;1;7;8
e;6;2;2;1;3
What I would like to obtain is to add the lines that are present in file1 but not in file2 with constant value for some column and zero in the last column, so to have:
a;34;42;23;45;1
b;cost1;cost2;cost3;cost4;0
c;3;2;1;7;8
d;cost1;cost2;cost3;cost4;0
e;6;2;2;1;3
Any help?,
Thanks.
to put it in the script copy the following text in it:
or even more adopted for human version: