title: Python Script to extract data from Text to Excel/CSV
body: <p>Here I am trying to write a script in Python that would extract data from a <strong>text file</strong> into <strong>CSV</strong>.</p>
  
  <p>The data looks like below:</p>
  
  <pre><code>*------------*
  102GCPC-XP
  not online
  *------------*
  ------------
  105PEACHPC
  
  
  name                : 105PEACHPC
  manufacturer        : Dell Inc.
  model               : OptiPlex 755                 
  totalphysicalmemory : 2101907456
  domain              : abc.com
  
  serialnumber : 90QZGG
  
  version : 5.1.2600
  
  Processor: Intel(R) Pentium(R)
  
  size : 79999073280
  
  ipaddress : 255.255.0.0
  
  ------------
  </code></pre>
  
  <p>I want the data to look like below:</p>
  
  <pre><code>COMPUTER NAME | STATUS   | NAME     | MANUFACTURER | MODEL      | TOTALPHYSICALMEMORY | DOMAIN | SERIALNUMBER | VERSION | PROCESSOR         | SIZE      | IPADDRESS |
  --------------+----------+----------+--------------+------------+---------------------+--------+--------------+---------+-------------------+-----------+-----------+
  102GCPC-XP    |not online|          |              |            |                     |        |              |         |                   |           |           |
  --------------+----------+----------+--------------+------------+---------------------+--------+--------------+---------+-------------------+-----------+-----------+
  105PEACHPC    |Online    |105PEACHPC|Dell Inc.     |OptiPlex 755|2101907456           |abc.com |90QZGG        |5.1.2600 |Intel(R) Pentium(R)|79999073280|255.255.0.0|
  </code></pre>
  
  <p>Thanks in Advance.</p>