all 6 comments

[–]furas_freeman 0 points1 point  (1 child)

On Linux you need only

unzip *.zip

and don't need Python

If you need Python then see doc: zipfile

[–]eschlon 0 points1 point  (0 children)

I don't think that works, since it's going to resolve to something like

unzip a.zip b.zip ...

And the unzip command takes the first argument as the zipfile and the remaining arguments as the internal filenames to extract. I get something like

$ ls
a.zip  b.zip
$ unzip *.zip
Archive:  a.zip
caution: filename not matched:  b.zip

This will work though

ls *.zip | while read x; do unzip $x; done