Skip to content

Instantly share code, notes, and snippets.

@ongaeshi
Created March 16, 2011 08:26
Show Gist options
  • Select an option

  • Save ongaeshi/872187 to your computer and use it in GitHub Desktop.

Select an option

Save ongaeshi/872187 to your computer and use it in GitHub Desktop.
rubyでunzipを実現するスクリプト
# -*- 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