Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 11 Aug 1998 22:26:42 -0400 (EDT)
From:      jack <jack@germanium.xtalwind.net>
To:        Greg Lehey <grog@lemis.com>
Cc:        freebsd-isp@FreeBSD.ORG
Subject:   Re: Compressing Tar
Message-ID:  <Pine.BSF.4.02.9808112212340.6662-100000@germanium.xtalwind.net>
In-Reply-To: <19980812103302.W22754@freebie.lemis.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Wed, 12 Aug 1998, Greg Lehey wrote:

> On Tuesday, 11 August 1998 at 18:44:35 -0500, Jack Wenger wrote:
> > Simple question, how can I compress a tarball as it's made, using
> > compress?
> > Something like: tar -cvf fred.tar * | compress * fred.tar.z, or something
> > like that?
> 
>   tar czvf fred.tar.gz *
> 
> This will give you gzip, of course.  If you really *insist* on using
> compress, the syntax is:
> 
>   tar cvf - . | compress > fred.tar.z

Why not just 

tar cZvf fred.tar.z .

man tar (the "correct" response to the original question, IMO) 
reports:

 -Z
 --compress
 --uncompress            Filter the archive through compress(1).

under OPTIONS


--------------------------------------------------------------------------
Jack O'Neill                    Systems Administrator / Systems Analyst
jack@germanium.xtalwind.net     Crystal Wind Communications, Inc.
          Finger jack@germanium.xtalwind.net for my PGP key.
   PGP Key fingerprint = F6 C4 E6 D4 2F 15 A7 67   FD 09 E9 3C 5F CC EB CD
               enriched, vcard, HTML messages > /dev/null
--------------------------------------------------------------------------



To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-isp" in the body of the message



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSF.4.02.9808112212340.6662-100000>