[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
RE: [Sheflug] Gzip Files
On 15-Oct-00 Richard wrote:
> If I've got a pile of mixed format files in a directory how do I Gzip
> the whole lot into a single file so that I can send it to a friend ?
>
> I've got....
>
> .html
> .sdd
> .jpg
> .jpeg
> .gif
>
> surely there's a simple gzip command that I can use for all of them ?
Gzip won't do what you presumably want (that your friend can gunzip
the archive into separate files); the result will be equivalent to a
single concatenated file. You need tar or zip.
Assuming you're in the directory in question, and you have write access
to the directory above:
For tar, suppose you want to call the resulting file
all_files.tgz
then do
tar czvf ../all_files.tgz *
For zip, suppose you want to call it
all_files.zip
then
zip ../all_files *
should do it (see man zip for other options) (and unzip should extract
them).
Ted.
--------------------------------------------------------------------
E-Mail: (Ted Harding) <Ted.Harding [at] nessie.mcc.ac.uk>
Fax-to-email: +44 (0)870 284 7749
Date: 15-Oct-00 Time: 19:10:20
------------------------------ XFMail ------------------------------
---------------------------------------------------------------------
Sheffield Linux User's Group - http://www.sheflug.co.uk
To unsubscribe from this list send mail to
- <sheflug-request [at] vuw.ac.nz> - with the word
"unsubscribe" in the body of the message.
GNU the choice of a complete generation.