Re: [Bug-tar] Extract a file from a large tar file

2017-04-17 Thread Sergey Poznyakoff
Hi Paul, > Presumably an option could be added to 'tar' so that it assumes the > tar file contains no duplicates, and can run faster in your case. FWIW, such an option already exists: --occurrence[=NUMBER] process only the NUMBERth occurrence of each file in t

Re: [Bug-tar] Extract a file from a large tar file

2017-04-17 Thread Sergey Poznyakoff
Peng Yu ha escrit: > Does anybody know what the problem is? Is there a way to let tar > finish as soon as the file is extracted. Try using the --occurrence option: tar --occurrence=1 -xvf a_large_tar_file.tar path/to/file/for/extraction Regards, Sergey

Re: [Bug-tar] Extract a file from a large tar file

2017-04-17 Thread Paul Eggert
On 04/17/2017 09:53 AM, Peng Yu wrote: Does anybody know what the problem is? There might be another instance of a file with the same name, in the same tar file. Presumably an option could be added to 'tar' so that it assumes the tar file contains no duplicates, and can run faster in your c

[Bug-tar] Extract a file from a large tar file

2017-04-17 Thread Peng Yu
Hi, I have a large tar file (1 > TB). When I try to extract a file from it using the following command, it hangs there even the file to be extracted has already been extracted in the local disk. tar -xvf a_large_tar_file.tar path/to/file/for/extraction Does anybody know what the problem is? Is th