Karl Cunningham wrote: > know how much space would be taken up if all the files in several > directories (and their subdirectories) were gzipped. This must be done > on the fly as there isn't enough space to store gzipped versions of all > the files.
If you're asking whether there's a way to pre-compute the compressed size, I think there's not anything better than heuristics. Frequently you will see that "common" text compresses to about 50% of it's original size, but the right answer is (of course) "it depends<tm>". Final size can range from less than 10% (try /var/log/messages) to (occasionally) greater than 100% of the original! If this is a recurring or persistent problem, maybe someone needs to step back and ask some larger-issue questions. Regards, ..jim -- [email protected] http://www.kernel-panic.org/cgi-bin/mailman/listinfo/kplug-list
