David was once rumoured to have said:

>> Generic solution:
>> 
>> gzip -dc mytar.tgz | tar xf -
> 
> what does gunzip or gzip do that tar doesn't?
> 
> tar xzf works and is easier to relate to. 

Only with GNU tar.  You can't do it with stock tar that ships with
Solaris, Irix or other commercial unix.

The 'z' flag is another GNU extention which nobody else supports.

<pedant>
Mind you, I find that the gzip answer is much closer to reality anyway.

tgz is a 'tar + gzipped' file.  so you use gzip -dc to unzip it, and
tar to untar it.  How much closer to the truth can you get? :)
</pedant>

C.
-- 
--==============================================--
  Crossfire      | This email was brought to you
  [EMAIL PROTECTED] | on 100% Recycled Electrons
--==============================================--

-- 
SLUG - Sydney Linux User Group Mailing List - http://slug.org.au/
More Info: http://slug.org.au/lists/listinfo/slug

Reply via email to