Thanks for your valuable suggestions.
I have a perl script which read date from a file and convert it like "yyyymmdd". But problem is if its read the date like "Fri Jul 13 04:44:01 2009" then its output is "20090713" whether when it reads the date like
"Sat Jul 4 12:54:22 2009" then it doesn't gives any output. The code is like
$ cat filter.pl
#!/usr/bin/perl -nl
BEGIN{
%m=(Jan=>1,Feb=>2,Mar=>3,Apr=>4,May=>5,Jun=>6,
Jul=>7,Aug=>8,Sep=>9,Oct=>10,Nov=>11,Dec=>12)};
m{^Event.+(\w{3})\s(\d\d|\d).+\s(\d{4})} and
printf "%4d%02d%02d\n",$3,$m{$1},$2;
1;
how can i solve this?
a warrior never quits