I am having one of these mornings where nothing goes to plan. I need to move files to a target directory by chunks of 1,000 at time

I wanted to loop thru my files like so

```
for i in `find . -name '*XML'`
   for((b=0; b<1000; b++))
   do
   mv $i targetdirect/
   done
done

```

But I get a "-bash: syntax error near unexpected token `done:" error. 

What I am missing??