Chris Gray wrote: > I'd rather people didn't use a chainsaw where a butterknife will do > just as well: > > tar tzf $1 | xargs rm > > will work for those dumbass tarballs where they don't make a new > directory to put their files. There might be confusion if there are > spaces in the filenames, in which case a perl one-liner might be > called for: > > perl -e 'while (<>){chomp; printf "\"%s\"\n", $_;}'
Or just tar tzf -print0 file.tar.gz | xargs -0 rm -- belief, n: Something you do not believe.