Obay Ouano Asked: 2013-02-23 04:11:02 +0800 CST2013-02-23 04:11:02 +0800 CST 2013-02-23 04:11:02 +0800 CST find and delete files of a certain type inside a tar.gz file 772 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. linux 1 Answers Voted Best Answer Izzy 2013-02-23T04:18:23+08:002013-02-23T04:18:23+08:00 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.
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.