Re: adding to compressed tar archive

From: Renison, Rick (rick.renison@EDS.COM)
Date: Fri Dec 13 2002 - 14:23:57 EST


To use tar with stdin or stdout, use "-f -"
eg. uncompress -c file.Z | tar -tvf -
    will list the TOC from a compressed tar file.

> -----Original Message-----
> From: Aaron W Morris [mailto:aaronmorris@MINDSPRING.COM]
> Sent: December 12, 2002 6:09 PM
> To: aix-l@Princeton.EDU
> Subject: Re: adding to compressed tar archive
>
>
> You cannot read tar files from stdin with "tar"...you would
> have to use
> pax.
>
> On Thu, 2002-12-12 at 11:40, Holger.VanKoll@SWISSCOM.COM wrote:
> > Hello,
> >
> > can I do this with pipes?
> >
> > uncompress $file
> > tar -rf $file some files
> > compress $file
> >
> > I dont see any way to tell tar to read a tar-archive from stdin AND
> > write it to stdout.
> >
> > Regards,
> >
> > Holger
> >
>



This archive was generated by hypermail 2.1.7 : Wed Apr 09 2008 - 22:16:24 EDT