Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
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 structure944|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
Perl/Sed/Awk any thing easy will do. Thanks in Advance. Shan2210.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
Code tags added by GrandFather
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: string manipulation
by kennethk (Abbot) on Nov 19, 2010 at 19:51 UTC |