Skip to content

Instantly share code, notes, and snippets.

@abn
Created April 22, 2018 03:34
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save abn/60572336bff7fe08ce772b5cd09c9296 to your computer and use it in GitHub Desktop.
Save abn/60572336bff7fe08ce772b5cd09c9296 to your computer and use it in GitHub Desktop.
An alias to unzip files when unzip command is unavailable, but python is.
# usage: unzipy <source.zip> <dest dir>
alias unzipy="python -c \"import os, sys, zipfile; zipfile.ZipFile(sys.argv[1], 'r').extractall(sys.argv[2])\""
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment