title: Extract part of one column and save into another file using awk
body: <p>I have a requirement to extract fields from a csv file. There are two columns <code>billing_info</code> and <code>key_id</code>.  <code>billing_info</code> is a object which has multiple data items in curly braces.   I need to extract  <code>billing_info.id_encrypted</code>, key_id into a different file.   </p>
  
  <p><strong>input.csv</strong></p>
  
  <pre><code>  billing_info,key_id
      {id: '1B82', id_encrypted: '1Q4AW5bwyU', address: 'san jose', phone: '13423', country: 'v73jyqgE='},bf6-96f751
  </code></pre>
  
  <p><strong>output.csv</strong></p>
  
  <pre><code> billing_info.id_encrypted,key_id
   1Q4AW5bwyU,bf6-96f751
  </code></pre>
  
  <p>May i know how to use awk command to extract the data in format mentioned in output.csv. Please help</p>