Operating System - Linux
1748049 Members
4635 Online
108757 Solutions
New Discussion

Re: command to change date format

 
SOLVED
Go to solution
H.Merijn Brand (procura
Honored Contributor

Re: command to change date format

Even shorter:

lt09:/tmp 115 > perl -paF: -e'$F[3]=sprintf"%s%s-%s-%s %s:%s:%s",unpack"(A2)*",$F[3]and$_=join":",@F' test.dta
A:B:C:2006-06-06 06:06:06:E
A:B:C:2006-05-04 03:02:01:E
A:B:C:2005-04-03 02:01:02:E
lt09:/tmp 116 >

Enjoy, Have FUN! H.Merijn
Enjoy, Have FUN! H.Merijn
Warren_9
Honored Contributor

Re: command to change date format

GOOD LUCK!!