title: AWK - match multiple patterns and print results
body: <p>Using my limited scripting knowledge.. I have put together an expect script to run some commands on specific devices. The output is below and is saved from all devices to a file (I just listed 2 devices as an example).</p>
  
  <p>l</p>
  
  <pre><code>lssystem | grep -i physical
  physical_capacity 82.85TB
  physical_free_capacity 20.50TB
  IBM_FlashSystem:SU73VAWFS15:config&gt;
  lssystem | grep -i physical
  physical_capacity 82.85TB
  physical_free_capacity 21.12TB
  IBM_FlashSystem:SU73VAWFS16:config&gt;
  </code></pre>
  
  <p>What I would like is to get some values from the output and have them displayed in rows, delimited by "," :</p>
  
  <pre><code>SU73VAWFS15,82.85TB,20.50TB
  SU73VAWFS16,82.85TB,21.12TB
  </code></pre>