title: Script to convert an output into an Excel sheet
body: <p>I have file which contains the following data:</p>
  
  <pre><code>-------------------[ server10 ]-------------------
  user1
  user2
  user99
  user100
  -------------------[ server20 ]-------------------
  user1
  user2
  user10
  user4
  -------------------[ server30 ]-------------------
  user10
  user30
  user40
  </code></pre>
  
  <p>I want to convert this output into Excel sheet, so that I can present ti to my management. Any idea how can do that???  </p>
  
  <p>I want the output into the following format in the Excel sheet:</p>
  
  <pre><code>Hostname            users
  server10            user1
                      user2
                      user99
                      user100
  server20            user2
                      user10
                      user4 
  ...
  ...
  </code></pre>
  
  <p>Till here "David" helped me with Python (openpyxl). but here i have new column (Last Logon time) which i want to add in excel so here is the example.</p>
  
  <pre><code>    -------------------[ server10 ]-------------------
      user1
      never
      user2
      Oct 17, 2011
      user99
      Jan 01, 2007
      user100
      Feb 02, 2010
      -------------------[ server20 ]-------------------
      user1
      never
      user2
      never
      user10
      jul 17, 2001
      user4
      Dec 25, 1999
      -------------------[ server30 ]-------------------
      user10
      Aug 10, 2012
      user30
      never
      user40
      never
  </code></pre>
  
  <p>In excel it would be like.</p>
  
  <pre><code> Hostname            users           Last logon
      server10            user1            never
                          user2            Oct 17, 2011
                          user99           ...
                          user100          ...
      server20            user2
                          user10
                          user4 
      ...
      ...
  </code></pre>
  
  <p>Notes: username could be different here i gave you example userX but it would be spatel, jim, eric etc...</p>