python - Unzip all files in zip archive with inline command -


i have zip file, no unzipping tool installed. have python installed, can't create python script file on machine. how unzip contents of zip file using python executable's -c argument?

i found solution this:

python -c "import zipfile;file=zipfile.zipfile('archive.zip');file.extractall('.')"

the contents of archive.zip placed directory command executed from.


Comments

Popular posts from this blog

android - Get AccessToken using signpost OAuth without opening a browser (Two legged Oauth) -

org.mockito.exceptions.misusing.InvalidUseOfMatchersException: mockito -

google shop client API returns 400 bad request error while adding an item -