In bash script, below while loop is supposed to print 1 to 4 number.
But this one is resulting as an infinite loop.
COUNT=1
while [ $COUNT < 5 ];
do
echo $COUNT
COUNT=$(($COUNT+1))
done
Is there any fault in condition or syntax ? (I think so...)