I have a tarball, and i want to remove all .tcl, .bat , .log files except pkgIndex.tcl in it.
if i do
tar --delete -f mytarball.tar --wildcards *{.tcl,.log,.bat}
my pkgIndex.tcl will be deleted, how to put that as exception in my pattern wildcard?
Just tried
tar --delete -f mytarball.tar --wildcards *{.tcl,.log} --exclude=*pkgIndex.tcl
and
tar --delete -f mytarball.tar --wildcards *{.tcl,.log} --exclude=pkgIndex.tcl
To no avail...