开发者

Recursive Unzip From Linux Shell?

开发者 https://www.devze.com 2023-02-11 04:04 出处:网络
I have a file named \'mainZip.zip\'\' This file (\'mainZip.zip\'\') contains two file开发者_如何学运维s:

I have a file named 'mainZip.zip''

This file ('mainZip.zip'') contains two file开发者_如何学运维s:

'textFile.txt'

'secondaryZip.zip'


'secondaryZip.zip' file contains two files as well:

'apple.bin'

'cat.jpg'


Can you advise how to unzip 'cat.jpg' in one bash command? can this be done using 'unzip' only?


This works:

unzip mainZip.zip && unzip secondaryZip.zip


Here is someone's answer to this exact question, using a custom script. It appears that Unix does not have a built-in recursive unzip option

0

精彩评论

暂无评论...
验证码 换一张
取 消