Hello Friends I am stuck in the file feed problem I have to load the following file onto informix The file I have is:
944|O|1234567890123|14NOV2010|15NOV2010|01JAN3000|C|45678|COMM||045 094|O|1099721190211|14NOV2010|15NOV2010|01JAN3000|C|35077|FREE||044 928|O|1234567890123|14NOV2010|15NOV2010|01JAN3000|C|45678|FREE||030 028|O|2009876543210|14NOV2010|15NOV2010|01JAN3000|C|99212|COMM||054
I need to change the file in the following format where JAN - DES months will be changed to the digit numbers 1-12 and position is Shifted to the format MM\DD\YYYY I am looking for the following structure
944|O|1234567890123|11\14\2010|11\15\2010|01\01\3000|C|45678|COMM||045 094|O|1099721190211|11\14\2010|11\15\2010|01\01\3000|C|35077|FREE||044 928|O|1234567890123|11\14\2010|11\15\2010|01\01\3000|C|45678|FREE||030 028|O|2009876543210|11\14\2010|11\15\2010|01\01\3000|C|99212|COMM||054
Perl/Sed/Awk any thing easy will do. Thanks in Advance. Shan2210.

Code tags added by GrandFather


In reply to string manipulation by Anonymous Monk

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.