the code is as
#!/bin/sh
i=1;
while [ $i -le 5 ]
do
echo "welcome $i times";
i= 'expr $i + 1 ';
done
the give code goes into infinite loop and doesnot increment the variable i
exit 0;
#!/bin/sh
i=1;
while [ $i -le 5 ]
do
echo "welcome $i times";
i= 'expr $i + 1 ';
done
the give code goes into infinite loop and doesnot increment the variable i
exit 0;
Comment