I have a directory with 27K files, I would like to tar them into multiple INDEPENDENT tar files, each will have 5000 files and the last one, will obviously have 2K (27K is not dividable by 5).
What is the fastest/easiest way to do this?
First create files with the filenames for each archive:
Then create the tars:
Untested but the basic idea should work.
Create an array called