hi guys,
i m new to shell script..
i dont know how to type cast string into integers and i mention my problem below..
date="21091988"
month=$((${date:2:2})) # extract the month from previous date variable
temp=$(($month*23))
when i am trying to calculate the temp value i got the following error..
09: value too great for base (error token is "09")
*23: syntax error: operand expected (error token is "*23")
i tried with following declaration,
declare -i month
bt above also not works....
i dont know where it gets wrong...
when i m assigning month value less than 8... it works nicely yar.....
i think it s something related to octane.... bt i dont know the extactly dears...
please help me....