gzip does not create zip files, it gzips single files or data streams. You want zip and use the -Z option to not compress the first file
- Code: Select all
zip -Z store archive.zip firstfile
zip archive.zip all the other files
You can also use the --suffixes option to specify the suffixes of files that should not be compressed, but if you need the uncompressed file to be first in the archive, the above example is more reliable.
"Insanity: doing the same thing over and over again and expecting different results." (Albert Einstein)