I have a output file that contains 3 different column data-
          ['AARF'],SAMPLE12,2016-01-05 12:00:00-0500
                  ,529OFFST,2015-04-16 08:04:21-0400
          "['EPROSP_IWS', '648099_EPROSP_IWS']",4.NDR-IWS-EPRO,2015-04-16 08:04:21-0400
I tried with below sed command-
        sed -i "s/\(\"*\[[^]]*\]\"*\)\(.*\)/{\1:\"\"}\2/" tempFile
        sed "s/' *, *'/' '/g;s/\([^,]*\),\([^,]*\),\(.*\)/update table set cross_refs = \1 where id = \2 and effective_date = \3/;s/' '/','/g" tempFile > updatestmt.cql
        sed -i "s/$/';/" updatestmt.cql
My Expected o/p-
       update table set cross_refs ={'AARF':''}  where id = 'SAMPLE12' and effective_date = '2016-01-05 12:00:00-0500';
       update table set cross_refs = {'':''}  where id = '529OFFST' and effective_date = '22016-01-05 12:00:00-0500';
       update table set cross_refs = {'EPROSP_IWS':'','648099_EPROSP_IWS':''} where id = '4.NDR-IWS-EPRO' and effective_date = '2015-04-16 08:04:21-0400';
Can anybody help me on this?
