[vox-tech] tar question

Matt Roper vox-tech@lists.lugod.org
Tue, 4 Jun 2002 11:56:53 -0700


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
> vox-tech@lists.lugod.org
> http://lists.lugod.org/mailman/listinfo/vox-tech

-- 

*************************************************
* Matt Roper <matt@mattrope.com>                *
* http://www.mattrope.com                       *
* PGP Key: http://www.mattrope.com/mattrope.asc *
*************************************************