title: Split line with multiple delimiters in Unix
body: <p>I have the below lines in a file</p>
  
  <pre><code>id=1234,name=abcd,age=76
  id=4323,name=asdasd,age=43
  </code></pre>
  
  <p>except that the real file has many more <code>tag=value</code> fields on each line.
  I want the final output to be like</p>
  
  <pre><code>id,name,age
  1234,abcd,76
  4323,asdasd,43
  </code></pre>
  
  <p>I want all values before (left of) the <code>=</code> to come out as separated with a <code>,</code> as the first row and all values after the (right side) of the <code>=</code> to come below for in each line</p>
  
  <p>Is there a way to do it with <code>awk</code> or <code>sed</code>? Please let me know if for loop is required for the same?</p>
  
  <p>I am working on Solaris 10; the local <code>sed</code> is <em>not</em> GNU <code>sed</code> (so there is no <code>-r</code> option, nor <code>-E</code>).</p>