1

Is there a way to not only find but also delete any .gz files inside a .tar.gz file? I found this link but I wouldn't know how to modify it to make it able to delete found files.

Obay Ouano
  • 185
  • 1
  • 5

1 Answers1

2

You cannot update compressed tar-files. So as long as you have a tar.gz file there is no way except unpacking, deleting and then repacking.

You could un-gzip the file though. After that there is a --delete-Flag you can use.

Izzy
  • 795
  • 2
  • 8
  • 31