Created
March 16, 2011 08:26
-
-
Save ongaeshi/872187 to your computer and use it in GitHub Desktop.
rubyでunzipを実現するスクリプト
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
| # -*- coding: utf-8 -*- | |
| # | |
| # gem install archive-zip | |
| # | |
| require 'rubygems' | |
| require 'archive/zip' | |
| zip = ARGV[0] | |
| dst = File.basename ARGV[0], '.zip' | |
| Archive::Zip.extract(zip, dst) | |
| puts "unzip #{dst}" | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment