Hi all,

At the final stage of my script, I got stuck into follwoing error:
" value too great for base" while doing some addition operations on the data extracted by awk in the command given below. The data in 3 parts is stored in arrays and then some airthmatic operations (+) are performed on that. The error "value too great for base" is displayed whenever operation finds a value starting with 0 . For example, 008 or 090...etc.

echo '0m0.001s 0m0.001s 0m0.001s 0m0.001s 0m4.001s 3m0.1s' | awk -F"[ms.]" '{hr[++i]=$1;mi[i]=$2;sec[i]=$3} END {for(j=1;j<=i;j++){print hr[j],mi[j],sec[j]}}' RS=" "

The reason of the error is:
Numerical values starting with a zero (0) are interpreted as numbers in octal notation by the C language. As the only digits allowed in octal are {0..7}, an 8 or a 9 will cause the evaluation to fail.

Can someone please suggest me the possible solution for the same without doing big changes in the script.

Thanks