I have about 9000 files in a directory and I want to mv them into 90 files in 100 directories by filename order, ignoring any remainder. In Copy multiple files from filename X to filename Y?, Caleb wrote in a comment:
If the object is just to batch them, there is a MUCH easier way!
ls | xargs -iX -n20 cp X target_folder/
would run cp on files in batches of 20 until they were all done.
So based off of using xargs, how could I switch the target_folder to create a new folder and loop the command 100 times?