I have a text file with paths to the list of files I want to compress into a singe archive. How can I pass this file to GZIP so it can create that archive with all files specified in the list?
Milan
I have a text file with paths to the list of files I want to compress into a singe archive. How can I pass this file to GZIP so it can create that archive with all files specified in the list?
Milan
gzip only compresses a single file. Use:
Well, in the first place,
gzip
doesn't compress multiple files into a single one, so you'll firsttar
. At least the GNUtar
I checked has the optionso I suppose
tar cfzvT target.tar.gz sourcelist
would work.gzip can only handle a single file at a time. You'll need to archive the files using tar first. Tar can do the compression at the same time (using the "z" argument).