Hi,
I am trying to do some shell programs. I tried some sites for help. Regarding the while loop, they give the structure as
Code:
while [ n1 -lt 500 ]
do
echo $((n1+100))
done
But the below code also worked for me
Code:
while ((n1 > 500))
do
echo $((n1+100))
done
By using (( )) i could use while, for... But the documentations didnt follow this way. Please help me on this. Any problem using this way. I mainly use this for datastructure programming.