19 Nov
2007
19 Nov
'07
19:25
On Monday 19 November 2007 20:06:40 Bryen wrote:
For all you scripting gurus out there. Can you help me out?
I'm trying to convert a value to an output to the user of minutes:seconds.
For example: if $A=100 (for seconds) Then echo "This is 1:40 minutes"
How would I do this?
I'm not sure if there is some utility for converting directly to a time (I know there is in C, but I don't know about the shell) But otherwise, you could do something like echo This is $((A/60)):$((A%60)) minutes Anders -- Madness takes its toll -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org