If you are using cygwin, you should be able to use the head command, for example:
ls | head -20000
to list the first 20 thousand.
If you want to move the package to 1 command line, something like this should work:
ls | head -20000 | xargs -I {} mv {} subdir
(where subdir is the subdir to which you want to move the files).
Run this first (using the echo command) to make sure that it will work before the actual move starts:
ls | head -20000 | xargs -I {} echo mv {} subdir
Just be careful as you move files to subdir because the ls command will probably pick up your subdir as well.
If these are all txt files, you can do something like this:
ls | grep txt$ | head -20000 | xargs -I {} mv {} subdir
to get files that end in txt
source share