Reputation: 545
My bash script has a for loop that just does not seem to work and I can't seem to figure out what the issue is.
Here is the error I am getting:
((: j = : syntax error: operand expected (error token is " ")
For loop:
for ((j = $Frompointer; j > $Topointer-1; j--))
do
echo "Print recovery points" | xargs >> Del.txt
done
Not sure what's wrong with my for loop, any guidance is much appreciated!
Upvotes: 0
Views: 38
Reputation: 361605
It appears that $Frompointer
is empty. j = $Frompointer
is expanding to just j =
which is a syntax error.
Upvotes: 1