Can you untar selectively?

akonstam at trinity.edu akonstam at trinity.edu
Wed Jun 15 12:39:18 UTC 2005


On Wed, Jun 15, 2005 at 02:43:29AM -0400, mark at 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




More information about the fedora-list mailing list