A shell script is giving me a trouble. It should display some increasing values each iteration. Dividing “1/9” is the source of the problem, and setting count as “1.0” should do the trick but gives me an error instead: ‘Illegal number: 1.0’
count=1
rtime=9
until [ $count -eq $rtime ]
do
echo $((($count/$rtime)*10))
sleep 1
count=$(($count+1))
done
1 Answer