Solved: Re: ot: converting minutes in hour-decimals

Wolfgang Engelmann engelmann at uni-tuebingen.de
Fri Jun 19 12:32:33 UTC 2020



Am 17.06.20 um 19:26 schrieb Rich Shepard:
> On Wed, 17 Jun 2020, Wolfgang Engelmann wrote:
> 
>> yes, thats clear, but how to do that one >>>
>>> You can use python for this on the command line.
>> The aim is, to produce a second column with the hours-minutes in 
>> decimals, something like $1/60.
> 
> Wolfgang,
> 
> Oh. I'd use awk; a one-line script. Off the top of my head:
> 
> #!/usr/bin/gawk
> 
> BEGIN { FS=OFS=":" } { print $1 $2, $1 $2/60 }
> 
> Almost certainly needs fine tuning. :-)
> 
> Regards,
> 
> Rich
Thanks again, Rich,
I tried to understand awk, but for me it was too aw(k)ful. Same with 
libreoffice calc and R. Too old and taking too much of my time to learn it.
Found a simple solution >see todays
Re: ot again: gnuplot> how to get decimal hour exported

Wolfgang


More information about the lyx-users mailing list