19 Nov
2007
19 Nov
'07
23:31
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)
A=100 notice this: $ echo $A $ $A=100 bash: =100: command not found $ A=DUMMY $ echo $A DUMMY $ $A=100 bash: DUMMY=100: command not found $
Then echo "This is 1:40 minutes"
How would I do this?
learn to read manual pages. man bash NUM1=((arithmetic_expression_here)) NUM2=((another_arithmetic_expression_here)) -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org