bug-tar
[Top][All Lists]
Advanced

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

Re: Performance improvement - extract single match


From: Sergey Poznyakoff
Subject: Re: Performance improvement - extract single match
Date: Thu, 14 Mar 2024 12:54:57 +0100
User-agent: MH (GNU Mailutils 3.15)

Hi Philip,

> When 
> tar --extract --file test.tar filename
> has found and written the contents of "filename", it could stop, but does not.
> 
> I assume this is because archive members with matching names could be present 
> more than once, therefore the whole archive must be scanned.

Please use the --occurrence option:

https://www.gnu.org/software/tar/manual/html_node/Option-Summary.html#index-occurrence_002c-summary

Regards,
Sergey



reply via email to

[Prev in Thread] Current Thread [Next in Thread]