Created
April 22, 2018 03:34
-
-
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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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