Robby Russell said: > Is there a way to get the file size of a zip before it is created? > > for example, I have a group of files and I add no compression and just > want to group them into an archive. I want to know what the file size of > the new zip would be BEFORE creating the zip file. Is this possible? I > don't see any flags to pass zip that would have it pretend that it is > zipping a file and producing a file size. > > Any thoughts? You could send the zip data through STDOUT and pipe through wc.
zip -q - file1 file2 | wc -c would give you the byte count. Though I noticed in my quick test that gives out a larger size. -- Mark http://www.kittydream.org - House of Dreams Cat Shelter http://www.quirkyqatz.com/lemming - My own stuff _______________________________________________ PDXLUG mailing list [EMAIL PROTECTED] http://pdxlug.org/mailman/listinfo/pdxlug
