title: Parsing text files and generating a CSV
body: <p>I'm trying to figure out how I would go about parsing a group of files containing raw log data (results of crontab -l) and convert this data into a CSV file. The entries in the files are like so:</p>
  
  <pre><code>10,25,40,55 * * * * /some/cron/here &gt; /dev/null 2&gt;&amp;1
  30 */4 * * * /some/cron/here
  </code></pre>
  
  <p>And so on.</p>
  
  <p>I want to get them into this format in a CSV file:</p>
  
  <pre><code>Cronjob | # of Servers | Every minute | Every hour | Every day | Every week | Every month
  -----------------------------------------------------------------------------------------
  CronHere| 10 | N | N | Y | Y | Y
  CronHere| 8 | Y | N | N | Y | Y
  </code></pre>
  
  <p>And so on. </p>
  
  <p>Can anyone give me some examples of how I might go about doing this? </p>