From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fa528,e50cc811bca985bc X-Google-Attributes: gidfa528,public X-Google-ArrivalTime: 2002-08-14 05:09:30 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!newsfeed1.cidera.com!Cidera!cyclone1.gnilink.net!spamfinder.gnilink.net!nwrddc02.gnilink.net.POSTED!53ab2750!not-for-mail From: "Nico Kadel-Garcia" Newsgroups: comp.unix.tru64 References: <5601c052.0208140357.3c46c571@posting.google.com> Subject: Re: Gunzip and Tar X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2600.0000 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000 Message-ID: Date: Wed, 14 Aug 2002 12:09:29 GMT NNTP-Posting-Host: 151.203.22.73 X-Complaints-To: abuse@verizon.net X-Trace: nwrddc02.gnilink.net 1029326969 151.203.22.73 (Wed, 14 Aug 2002 08:09:29 EDT) NNTP-Posting-Date: Wed, 14 Aug 2002 08:09:29 EDT Xref: archiver1.google.com comp.unix.tru64:8410 "Scott Skinnider" wrote in message news:5601c052.0208140357.3c46c571@posting.google.com... > Dave Uhring wrote in message news:... > > Scott Skinnider wrote: > > > > > Excuse the ignorance, I am kind of new to unix. I am trying to unpack > > > and install BB on Tru64, I am having a bit of trouble untar'ing the > > > files. it seems the commands I am using don't work. > > > gunzip -c filename | tar -xf > > > > gunzip produces no standard output; therefore the pipe will not work. > > Either > > > > gunzip filename.tar.gz; tar xf filename.tar > > > > or gzip -cd filename.tar.gz | tar xf - > > > > BTW, depending on which version of tar you have, if you insist on using > > the - for your options it may be necessary to have the - for each > > option; i.e., tar -x -f. > > Thanks Dave, > Scott Except that Dave left out a bit. "gzip -c" produces stdout output. But it's trying to *compress* filename.tar.gz. It's the "gzip -dc" that says to *oncompress* the file. Most of us use "gzcat filename.tar.gz | tar xf -", where gzcat is a shortcut name for "gzip -dc". Others of us use the GNU version of tar from the RPM package from Compaq and use "gtar -xf filename.tar.gz". The GNU version is generally wildly superior to the default version on almost every UNIX variant because of its internal handling of these sorts of things, and its better behavior when descending a directory and failing to read a single file.