I'm on Ubuntu 16.04.
I have a folder with a lot of text files (almost 12k).
I need to upload them all to a website that accepts .tar.gz
uploads and then decompresses them automatically, but has a limit of 10MB (10000KB) per file (so in particular each file has to be decompressed on its own).
If I tar.gz
all these files the resulting file is of about 72MB.
What I would like to do is to create eight .tar.gz
files, each of size / dimension (strictly) smaller than 10000KB.
Alternatively, one can assume that all the files above have approximately the same dimension, so I would like to create eight .tar.gz
files with more or less the same amount of files each.
How can I do any of these two tasks?
I am perfectly fine with a solution that involves GUI, CLI or scripting. I am not looking for speed here, I just need it done.