I have a file that come from map reduce output for the format below that needs conversion to CSV using shell script . The dynamic values are five values and they are the transaction IDs and the four fields(2000,ABC corp,.., BE900000075000027) after that and they keep changing for the next Transaction ID , only the other 17 values(25-MAY-15,04:20 ...til standard life) is constant.  25-MAY-1504:20Client0000000010127.0.0.1PAYISO20022PAIN0001001CUSTAPIABF07ABC03_LIFE.xmlAFF07/LIFE100000Standard Life ================================================================================================AFF07-B000001 2000ABC Corp..BE900000075000027AFF07-B000002 2000XYZ corp..BE900000075000027AFF07-B000003 20003MM corp..BE900000075000027Need output in below format 25-MAY-15,04:20,Client,0000000010,127.0.0.1,PAY,ISO2002,PAIN000,100,1,CUST,API,ABF07,ABC03_LIFE.xml,AFF07/LIFE,100000,Standard Life, 25-MAY-15,04:20,Client,0000000010,127.0.0.1,PAY,ISO2002,PAIN000,100,1,CUST,API,AFF07-B000001, 2000,ABC Corp,..,BE90000007500002725-MAY-15,04:20,Client,0000000010,127.0.0.1,PAY,ISO2002,PAIN000,100,1,CUST,API,ABF07,ABC03_LIFE.xml,AFF07/LIFE,100000,Standard Life, 25-MAY-15,04:20,Client,0000000010,127.0.0.1,PAY,ISO2002,PAIN000,100,1,CUST,API,AFF07-B000002,2000,XYZ Corp,..,BE900000075000027I need values  to be repeating  just before the two dashed lines along with the rest of the output for the Transaction ID AFF07-B000001,AFF07-B000002,AFF07-B000003There is no dash lines in the real file , I have added it to ensure a better understanding of the input file 
Convert a Column oriented file to CSV output using shell script
linux;shell script