How do I unzip files recursively in macOS?

Say I have a list of folders and I want to unzip the .ZIP files. Is there a bash script or python script that I could use to achieve this? All suggestions welcome!

categories
├─movies
│ └─directors
│   ├─spielberg.ZIP
│   └─lucas.ZIP
│
├─literature
│ └─authors
│   ├─dickens.ZIP
│   └─austen.ZIP
╎
└─music
  └─artists
    ├─ellington.ZIP
    └─hendrix.ZIP

Have you tried searching for "how do I unzip files recursively in macOS"?

There seem to be a few good hits with things you can try.

I was able to unzip the top directory using the following command:

find ./ -name \*.ZIP -exec unzip {} \;

But it does not unzip the zipped files inside subdirectories.

This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.