Running Linux. I have a directory of around 150 large CSV files; simply doing a zip -9
on them results in a monolithic file that is still too large. I would like it to simply zip them in maybe four or five zip files of 30-40 CSVs each; this way sequencing or spanned zip order won't be a problem, as each zip is independent. There must be a simple way to do this. Any suggestions?
(and yes, zip is the preferred format, if possible)
Best Answer
Isn't -s switch enough? You may use zip -s to split the file into files of maximum size, e.g.:
"zip -s 300m <2 gb file>" produces:
Then "unzip file.zip" will unzip everything together.