Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Thanks for the share, I still find it hilarious how Python is by default installed on most distros, I was working on some compression tools and by default the os didn't come with the ability zip/unzip toolsets, but the python standard library zipfile did.

https://docs.python.org/3/library/zipfile.html



> by default the os didn't come with the ability zip/unzip

Some versions of tar are able to extract zip files.

Try

    tar xf somefile.zip
It might or might not work with the version in your OS


You don't even have to write a custom script around the library:

  python -m zipfile -e monty.zip target-dir/
https://docs.python.org/3/library/zipfile.html#command-line-...




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: