I found my next bump in the road, when appending the carry over file I found that if the car moves again in the same month and has a date in file1 and not file2 it messes with the date matching:

I get this: ACFX 28523 L 5/30/13 5/10/13 HALLIBURT-C ACFX 28523 L 5/1/13 HALLIBURT-C should look like this: ACFX 28523 L 5/30/13 HALLIBURT ACFX 28523 L 5/1/13 5/10/13 HALLIBURT-C

I wrote a quick script that compares the date and outputs the car numbers and I can manually fix but would like to avoid having to touch the file (more room for user error) The duplicate car number also picks up the -C when it is not a carryover. Your genius will be much appreciated.


In reply to Re^9: issue with output of file matching by rruser
in thread issue with output of file matching by rruser

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.