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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to