bug-tar
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Bug-tar] Feature request: counterpiece to option sequence "--null" "--f


From: Helmut Waitzmann
Subject: [Bug-tar] Feature request: counterpiece to option sequence "--null" "--files-from=..." for option "--list"
Date: Tue, 31 Aug 2004 01:44:06 +0200
User-agent: Gnus/5.1006 (Gnus v5.10.6) Emacs/21.3 (gnu/linux)

I'd like to delete members of an archive, which are already archived in
a second one.  The best solution would be to use the "--files-from" and
"--null" options:  Files with names "-C" wouldn't do any harm.

tar -f second.tar --list --null . | \
tar -f first.tar --files-from=- --null --delete --no-recursion

But this won't work, because "--null" only affects the semantics of the
"--files-from" option, not the "--list" option (which I think is
correct).

So I'd like to have a "--list-null" option, which would list the contents
of the archive as a NUL separated list of member names:

tar -f second.tar --list-null . | \
tar -f first.tar --files-from=- --null --delete --no-recursion

One benefit of this would be, that this list could be piped to xargs:

tar -f archive.tar --list-null | \
xargs --null -- process the archive member names as you like
-- 
Wenn Sie mir E-Mail schreiben, stellen |  When writing me e-mail, please
Sie bitte vor meine E-Mail-Adresse     |  precede my e-mail address with
meinen Vor- und Nachnamen, etwa so:    |  my full name, like
Helmut Waitzmann <address@hidden>, (Helmut Waitzmann) address@hidden




reply via email to

[Prev in Thread] Current Thread [Next in Thread]