What is the Linux shell equivalent of this Windows shell batch file command?
tar czf b.tgz --exclude="dontwant.tgz" @a.tgz
What I need to achieve:
a.tgz
has many files includingdontwant.tgz
.- I want to create
b.tgz
such that it has all files ina.tgz
exceptdontwant.tgz
.
@a.tgz
has an interesting meaning! I wouldn't have thought this to be a functionality of any shell. Wow! – Marcus Müller Dec 17 '21 at 17:09man tar
andinfo tar
. – waltinator Dec 17 '21 at 20:57@tarball
– Chris Davies Dec 17 '21 at 21:20tar
you're using etc. – polemon Dec 26 '21 at 15:33