j
k
j a
j l
...for i in `seq 0 10`; do SUM=`echo $SUM+${ARR[$i]}|bc` done SUM=$(($SUM + ${ARR[$i]}))
for i in `seq 0 10`; do SUM=`echo $SUM+${ARR[$i]}|bc` done
SUM=$(($SUM + ${ARR[$i]}))
i need 'bc' to work, cause i need float values. is there any other way to have float values in shell variables.
parvez
Back to the thread
Back to the list