I have a folder
A with hundreds of thousands of files. I would like to move these files to new subfolders
S_i, with, say, 100 files in each (the last folder may have less than 100 files)
In other words, if my folder
file1 file2 ... file1000
I would later have:
S_1: file_1 ... file_100 S_2: file_101 ... file_200 ...
Before I write a Zsh script manually to do this task (e.g. using variables to count files), I was wondering if there are any readily available tools (like split) that would facilitate this task.