I have a file I need to split into smaller sizes (<24M when zipped)
Heres the file:
498775505 Mar 8 00:08 test.file
I split it:
split -b 125000k test.file test.file.
Now I have even sized files (apart from the last file which is fine)
476M Mar 8 00:08 test.file
123M Mar 8 00:09 test.file.aa
123M Mar 8 00:09 test.file.ab
123M Mar 8 00:09 test.file.ac
110M Mar 8 00:09 test.file.ad
But when I gzip these files, they do not zip down evenly
gzip test.file.a*
476M Mar 8 00:08 test.file
27M Mar 8 00:09 test.file.aa.gz
23M Mar 8 00:09 test.file.ab.gz
22M Mar 8 00:09 test.file.ac.gz
20M Mar 8 00:09 test.file.ad.gz
Can somebody explain what is happening here with gzip?
(This is more out of curiosity as I can just split them into smaller amounts to get them under 24M
, just wondering how gzip works here)