How to gzip more than one file using cygwin

1

Possible Duplicate:
How to gzip multiple files into one gz file?

I am trying to gzip a bunch of files in the same folder using cgywin on windows 7. When I try

gzip *.* 

I can't seem to specify a gzip filename to put all the files into. All files are gzipped separately. Is it possible to gzip the collection of them into the file?

dublintech

Posted 2012-02-19T12:37:04.343

Reputation: 903

Question was closed 2012-02-19T21:25:34.577

1As for the question - use tar to make 1 file then gzip to compress it. – T. Kaltnekar – 2012-02-19T12:43:18.690

Answers

2

No, you do not gzip collection. You use PAX or CPIO or TAR to make it.

gzip *.* is useless.

DOS would take gzip .
UNIX would use gzip *

tar cfz file.tgz dir/ dir/ dir/ file dir/file

tar tvfz file.tgz
tar xvfz file.tgz

ZaB

Posted 2012-02-19T12:37:04.343

Reputation: 2 365