title: Looking help to write a script to merge the columns (that are common as one separated by comma
body: <p>I am looking for help in writing a script to accomplish below</p>
  
  <p>I would like to merge the columns (that are common as one separated by comma delimiter) for each id.</p>
  
  <p>Table A</p>
  
  <pre><code>id i_part ipart_ps ipart_size   j_part  j_part_ps j_part_size k_part k_part_p
  
  1   XXXX   4,c         10         AAAA   3L+2         7       BBBB        3,c
  
  2   XXXX   4,c         15         CCCC   3L+2         9       KKKK        3,c
  
  3   XXXX   4,c         13         DDDD   3L+2         10      RRRR        3,c     
  </code></pre>
  
  <p>Table A</p>
  
  <pre><code>id  part           position       size
   1  XXXX,AAAA,BBBB  4,c,3L+2,3,c   10,7
   2  XXXX,CCCC,KKKK  4,c,3L+2,3,c   15,9
   3  XXXX,DDDD,RRRR  4,c,3L+2,3,c   13,10
  </code></pre>