Hello,
I come to you asking you a hand on a script that I have performed on a unix server.
I have two files that I have to concatenate in a single line.
The first file is created like this:
mag;code_art;campagne;st_juillet;st_aout;etc
The second file is created like this:
code_art;campagne;pma_juillet;pma_aout;etc
and the final should be like this:
mag;code_art;campagne;st_juillet;st_aout;etc;pma_juillet;pma_aout;etc...
Basically I do a join on two fields that are code_art and campagne.
And I plant, because I tried to join but the result is false because the joint can be achieved only on a field.
Basically, I give you an example and hope that you will be inspired much more than me because I really dry.
Example:
The first file includes this:
mag;code_art;campagne;st_juillet;st_aout;etc
201;106;2007;12;23;etc
201;206;2008;11;13;etc
113;206;2007;12;14;etc
112;208;2008;34;25;etc
The second file contains this:
code_art;campagne;pma_juillet;pma_aout;etc
206;2007;112;118,etc
201;2008;115;120;etc
206;2008;175;195;etc
106;2007;340;152;etc
208;2008;32;12;etc
etc.........
and the final file should look like this:
mag;code_art;campagne;st_juillet;st_aout;etc;pma_juillet;pma*_aout;etc
201;206;2008;11;13;etc;112;118;etc
201;106;2007;12;23;etc;340;152;etc
112;208;2008;34;25;etc;32;12;etc
I finish this post a little long, thank you in advance for your help.
Amicalement
Steph70