[FIX] How to split the content of a folder into subfolders

Question

I would like to know if there is an easy way to automatically (programmatically, within a bash script) to split the content of a folder into subfolders with the parent folder.

I have a folder let’s say with 580 files (of the same suffix), which I would like to split into six subfolders named e.g. subfolder1, subfolder2, etc. and put in each 100 files except the last which will contain the rest), or split evenly, if easier).

Thanks

Click Here to see answer

0
payam 2 weeks 2022-09-20T08:08:17+00:00 0 Answers 1 views

Leave an answer

By answering, you agree to the Terms of Service and Privacy Policy.