I have 1000 files in a single folder and I need to split them into counts of 100 files each. After this, I need to automatically move the 100 files to a new folder which is automatically created.I use this command for manually moving the files.for file in $(ls -p | grep -v / | tail -100);do mv $file NEWFOLDER;doneBut, this will be hard enough if I had around 10000 files in a single folder.
Split the files on a directory and move them to another newly created directory
bash