x=1
while [ $x -le 50 ]
do
echo $x
$x=(($x + 1))
done
I have wrote the above code. What seems to be a easy task in many programming languages is giving this error for me.
solution.sh: line 5: syntax error near unexpected token `('
solution.sh: line 5: ` $x=(($x + 1))'
How to debug errors in bash. Is there any IDE?
Aucun commentaire:
Enregistrer un commentaire