On Mon December 10 2007 09:34:34 pm Carlos E. R. wrote: > Obviously, it is thinking it is an octal number. How do I convince bash > to use standard base ten math? Is there a prefix?
Hi Carlos, A bit of Google research reveals the prefix '10#' tells bash to use base 10 (decimal) instead octal interpretation. What happens if you try this (or some derivative?) :-) DIFF=$[ (10#$LOC_H - 10#$HWC_H)*3600 + (10#$LOC_M - 10#$HWC_M)*60 + (10#$LOC_S - 10#$HWC_S) ] regards, Carl -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
