error in while loop
2 posters
error in while loop
i=0
echo "values are"
while [ $i -le 5 ]
do
echo $i
i=`expr i + 1`
done
error:
expr: non-numeric argument
./exwhile.sh: line 5: [: -le: unary operator expected
This is the error am getting...
echo "values are"
while [ $i -le 5 ]
do
echo $i
i=`expr i + 1`
done
error:
expr: non-numeric argument
./exwhile.sh: line 5: [: -le: unary operator expected
This is the error am getting...
aarthi- Posts : 12
Points : 22
Join date : 2010-02-26
Similar topics
» loop structures
» header file is not getting recognised (in Eclipse/C++)
» Command error
» Identify the error in the code
» error: return type for `main' changed to `int'
» header file is not getting recognised (in Eclipse/C++)
» Command error
» Identify the error in the code
» error: return type for `main' changed to `int'
Permissions in this forum:
You cannot reply to topics in this forum
|
|