i need to do camparisions like the below.
For the case when first[1]=10 and second[1]=9.9 the scripts displays process failed.
I need to be able to convert the values to integer before doing the comparision.
Like 9.9 should be rounded over to 10 before doing comparision.
Please advice how can I do this.
for i in 1 2 3 4 5 6 7 8 9
do
if [ ${first} -gt `${seoond} / 10` ]
then
echo "process failed "
break
fi
done