How do I create a script that can gather certain data from a text logfile with fixed columns?

Here is an excerpt of logfile:

File Name Time Stamp + Total Records Processed Errors -------------------------------------------------- ------------------- +- -------------------- -------------------- -------------------- N-20070143.003.TXT 05/23/07 02:36:59 P +M 13 13 0 N-20070143.004.TXT 05/23/07 04:48:56 P +M 1 1 0 N-20070143.006.TXT 05/23/07 04:48:56 P +M 16 16 0 N-20070143.008.TXT 05/23/07 04:48:58 P +M 19 19 0 N-20070143.009.TXT 05/23/07 04:48:59 P +M 1 1 0 N-20070143.010.TXT 05/23/07 04:49:00 P +M 5 4 1 N-20070143.012.TXT 05/23/07 04:49:00 P +M 18 18 0 N-20070143.013.TXT 05/23/07 04:49:02 P +M 20 20 0 N-20070143.015.TXT 05/23/07 04:49:03 P +M 53 53 0 N-20070143.011.TXT 05/24/07 04:35:48 P +M 5 5 0 N-20070152.040.TXT 06/18/07 04:03:26 P +M 25 21 4
Any information appreciated.

Thanks in advance.

Freddie


In reply to How to monitor a logfile with columns for certain data? by freddiel

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.