I wanted to write a script to print 10 number using while loop. I tried the following code
#!/bin/sh
i=0
while [ $i -lt 10 ]
do
echo "$i"
i='expr $i + 1'
done
but I am getting the following error
sh: $i: unknown operand
can anyone explain me why its raising error?