Re: How to extract all but one file from a tar archive?

From: Fritz Wuehler (fritz_at_spamexpire-200310.rodent.frell.eu.org)
Date: 10/07/03


Date: Tue, 07 Oct 2003 14:07:51 +0200


"N" == Norbert <ng.ng@web.de>:
N> I have a tar archive and would like to extract all but one/some
N> huge file(s) from it (due to restricted disk space).

Create empty local copies of the huge file(s) in the archive and tell
tar not to overwrite them:

$ touch dir/file1 dir/file2
$ tar --keep-old-files -xzf example.tar



Relevant Pages