terry white wrote: > ... ciao: > > : on "10-20-2006" "Mauricio Silveira" writ: > : I'm wondering if there's any way to get tar to stop immediately after > : the extraction of a file on compressed tar files. eg: I pack a big tgz > > 'man tar' offers: > > -T, --files-from F > get names to extract or create from file F > > > : when I run "tar xf file.tgz --occurrence index.txt" > > HOWEVER , i'm using a gnu flavour 'tar', which does "not" list > '--occurrence' as an option, so, the suggestion above may not apply .. I know 1.13 doesn't have this option (at least on command line help). I did some research on the source code for tar 1.15.1 and found a place to insert a simple exit() when using "--occurrence filename" to force tar to quit on a "match". I think this is the way tar should behave... compressed or non compressed files, tar actions behavior should be the same. I think I should send tar this issue as a bug... as far as tar waits for its child "compress program" pipe to end. Attached file "tar-1.15.1-compressed-archive-quit-on-ocurrence.diff" (such a long name huh?). Thanks, Mauricio