How do you recursively unzip archives in a directory and its subdirectories from the Unix command-line?

前端 未结 10 649
旧巷少年郎
旧巷少年郎 2020-12-04 07:15

The unzip command doesn\'t have an option for recursively unzipping archives.

If I have the following directory structure and archives:

/Moth         


        
10条回答
  •  夕颜
    夕颜 (楼主)
    2020-12-04 07:32

    You could use find along with the -exec flag in a single command line to do the job

    find . -name "*.zip" -exec unzip {} \;
    

提交回复
热议问题