[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: Can you untar selectively?



On Wed, Jun 15, 2005 at 02:43:29AM -0400, mark mark mielke cc wrote:
> On Wed, Jun 15, 2005 at 01:04:28PM +1000, stefaan wrote:
> > How would I go about untarring a particular file selectively out of a
> > tarball.
> > Is this possible at all if I know the path/filename existing in the tarball?
> > Also been looking at cpio, would this maybe do it?
> 
>     tar -xvf blah.tar my/file/name.c
> 
The above will do it if my/file/name.c is exactly how the file appears
in the tar list produced by: tar tvf blah.tar
-------------------------------------------
Aaron Konstam
Computer Science
Trinity University
telephone: (210)-999-7484


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]