0
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.txt
) - split
total.txt
in 3 lists:slice1.txt
containing the list of the 1st 35 Gb of filesslice2.txt
containing the list of the following 35 Gb of filesslice3.txt
containing 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.
total.txt is just a list of all files, like ls. Definitely wants
split
though. – Rob – 2012-04-16T19:09:16.917