On Thu, Nov 22, 2007 at 03:55:40PM +0200, Sergey Poznyakoff wrote: > Vitaly V. Ch <[EMAIL PROTECTED]> ha escrit: > > > On some machines run under slackware 10.2 next test always fail: > > > > for ((i=0;i<1000;i++)); do echo $i >$i; tar cz $i >>file.tgz; done; > > gzip -t -v file.tgz > > It should have failed. You cannot glue together two compressed files and > expect the result to be a valid compressed file.
I haven't ever used it myself, but my gzip man page says:
ADVANCED USAGE
Multiple compressed files can be concatenated. In this case, gunzip
will extract all members at once. For example:
gzip -c file1 > foo.gz
gzip -c file2 >> foo.gz
Then
gunzip -c foo
is equivalent to
cat file1 file2
(This is the man page included in the Debian gzip package, version
1.3.5-10sarge2.)
Nathan
----------------------------------------------------------------------------
Nathan Stratton Treadway - [EMAIL PROTECTED] - Mid-Atlantic region
Ray Ontko & Co. - Software consulting services - http://www.ontko.com/
GPG Key: http://www.ontko.com/~nathanst/gpg_key.txt ID: 1023D/ECFB6239
Key fingerprint = 6AD8 485E 20B9 5C71 231C 0C32 15F3 ADCD ECFB 6239
signature.asc
Description: Digital signature
