title: How to convert a file with data in key = value format to a csv file in unix shell scripting?
body: <p>I have an input file of the format:</p>
  
  <pre><code>(key1=value1,key2=value2,key3=value3)
  (key1=value4,key2=value5,key3=value6)
  </code></pre>
  
  <p>I want to convert this file to a csv file like:</p>
  
  <pre><code>key1,key2,key3
  value1,value2,value3
  value4,value5,value6
  </code></pre>
  
  <p>How can i do this in a shell script?</p>