opensubscriber
   Find in this group all groups
 
Unknown more information…

h : help-tar@gnu.org 6 August 2010 • 1:47PM -0400

Re: [Help-tar] extracting files from a tar archives having many copies of the same file
by Ersek, Laszlo

REPLY TO AUTHOR
 
REPLY TO GROUP




On Thu, 5 Aug 2010, Payal wrote:

> I have a tar archive in which i added file foo.txt 4 times (using -u
> switch). Now when I extract, I find that the last one overwrites all the
> previous ones extracted. How do I extract say only 2nd copy of foo.txt?

--occurrence=2

http://www.gnu.org/software/tar/manual/html_chapter/tar-invocation.html#IDX128

lacos


Bookmark with:

Delicious   Digg   reddit   Facebook   StumbleUpon

Related Messages

opensubscriber is not affiliated with the authors of this message nor responsible for its content.