[vox-tech] tar question
Peter Jay Salzman
vox-tech@lists.lugod.org
Tue, 4 Jun 2002 12:07:20 -0700
hi matt, are you sure?
p@satan% file test.tar
test.tar: GNU tar archive
p@satan% tar --delete --file test.tar b
tar: b: Not found in archive
tar: Error exit delayed from previous errors
p@satan% file test.tar
test.tar: data
not only doesn't it remove b from my tar file, it seems to destroy the
tar file! ick!
pete
begin Matt Roper <matt@mattrope.com>
> 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