I need to generate a list of all files in a certain dir, and truncate it in X lists containing each one a fixed amount of data of files.
E.g. I have 95 Gb of data.
- generate the file list (
total.txtin 3 lists:
slice1.txtcontaining the list of the 1st 35 Gb of files
slice2.txtcontaining the list of the following 35 Gb of files
slice3.txtcontaining the list of the remaining files
Any hint? I've googled and played around with find, awk, grep, but this task seems really above my competencies.