HI,
I'm new in perl..
I'm not sure if that is easy to use Perl to change the timestamp
format in the text file..
I got the txt file from sybase database, because the format is
different , I need to change it suitable to out DB2 database..
I heard that Perl is good at text processing... But I'm not very
familiar with it...
For example I want to change the format from following
a|b|c|Jul 14 2000 4:56:00:000PM|d |e|f|Jul 14 2000
4:56:00:000PM|h |I|j
to
a|b|c|2000-07-14-16:56:00:000000 |d|e|f|2000-07-14-16:56:00:000000 |h|I|j
"|" is the seperator in the text, and the timestamp could be different
values and could happen at any place..
Is there any way to process the file easily?
Your help is very appreciated..
I'm new in perl..
I'm not sure if that is easy to use Perl to change the timestamp
format in the text file..
I got the txt file from sybase database, because the format is
different , I need to change it suitable to out DB2 database..
I heard that Perl is good at text processing... But I'm not very
familiar with it...
For example I want to change the format from following
a|b|c|Jul 14 2000 4:56:00:000PM|d |e|f|Jul 14 2000
4:56:00:000PM|h |I|j
to
a|b|c|2000-07-14-16:56:00:000000 |d|e|f|2000-07-14-16:56:00:000000 |h|I|j
"|" is the seperator in the text, and the timestamp could be different
values and could happen at any place..
Is there any way to process the file easily?
Your help is very appreciated..
Comment