Jun 18, 2013, 10:57 AM
Post #7 of 12
We are not a code writing service and I normally don't post solutions until the OP shows some effort in solving the problem, which you clearly have not done. However, I sometimes make an exception.
Re: [Coatman] perl to convert from H:MM:SS.S to MM.MMMM
[In reply to]
The output of your shell script is not the same as what you say you want, so I'm not sure what you really need/want.
my ($hr,$min,$sec) = /(\d+):(\d+):([\d.]+)/;
push @minutes, sprintf("%.4f", (60*$hr + $min + $sec/60));
$, = ',';
Executed as: convert.pl elapsed_01.txt