I think what you need is tar --delete --file test.tar b (i.e. put the list of files to delete at the end of the command line)
Matt On Tue, Jun 04, 2002 at 11:45:58AM -0700, Peter Jay Salzman wrote: > how do you delete a file from an archive? i did: > > mkdir test > cd test > echo "hello" > a > echo "hello" > b > cd .. > tar cv test > test.tar > > then: > > tar --delete b --file test.tar > tar --delete test/b --file test.tar > > both time i get > > tar: b: Not found in archive > > > how do i delete a file from a tar archive? without doing something dumb > like untarring, deleting and retarring. > > pete > _______________________________________________ > vox-tech mailing list > [EMAIL PROTECTED] > http://lists.lugod.org/mailman/listinfo/vox-tech -- ************************************************* * Matt Roper <[EMAIL PROTECTED]> * * http://www.mattrope.com * * PGP Key: http://www.mattrope.com/mattrope.asc * ************************************************* _______________________________________________ vox-tech mailing list [EMAIL PROTECTED] http://lists.lugod.org/mailman/listinfo/vox-tech