Re: Can you untar selectively?

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

 



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

Also useful might be the listing of the file names in a tar file:

    tar -tf blah.tar

cpio can do it, but I'm not sure that it does a better job.

Cheers,
mark

-- 
mark@xxxxxxxxx / markm@xxxxxx / markm@xxxxxxxxxx     __________________________
.  .  _  ._  . .   .__    .  . ._. .__ .   . . .__  | Neighbourhood Coder
|\/| |_| |_| |/    |_     |\/|  |  |_  |   |/  |_   | 
|  | | | | \ | \   |__ .  |  | .|. |__ |__ | \ |__  | Ottawa, Ontario, Canada

  One ring to rule them all, one ring to find them, one ring to bring them all
                       and in the darkness bind them...

                           http://mark.mielke.cc/


[Index of Archives]     [Current Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]     [Fedora Docs]

  Powered by Linux