I've got a tarball named test.tar which I first created it by running:
echo start > 1 tar -cf test.tar 1 And then updated it by:
echo end > 1 tar -uf test.tar 1 Now if I get a list of files within this tar archive:
$ tar -tx test.tar It gives me:
1 1 If I try to see what's in these files:
$ tar -xOf test.tar start end And finally when I want to extract it:
$ tar -xf test.tar 1 $ cat 1 end Is there anyway to extract the old version of 1? (the one which contains start).
Another thing is deleting these files, when I use --delete parameter it'll delete all files with that name from archive. How can I only delete the old or new one?