I'm trying to insert stuff in db whith a while loop, but after 2 inserts my loop break ... here the code:
x=0
while [[ "$x" < 10 ]];do
((x++))
sqlite my_db.db "insert into (col) values ('$x...')
done
So I tried to do that but unsuccess too.
y=0
x=0
while [[ "$y" < 5 ]];do
while [[ "$x" < 10 ]];do
((x++))
sqlite my_db.db "insert into (col) values ('$x...')"
done
((y++))
done
But once again its only insert 2 times ... So why did i have this error and how to fixe that ? thx.