|
Simple Sand Samples |
説明のないとってもシンプルなサンプルプログラム集
| COBOL | awk | C言語 | D言語 | GO言語 | Lua | Vim |
| bash | Perl | Gauche | Clojure | CLISP | EmacsLisp | VimScript |
| tcsh | Ruby | Groovy | Java | C# | VBScript | JavaScript |
| Io言語 | Python | Erlang | Scala | VB.NET | Excel/VBA | PHP |
| Tcl | Haskell | OCaml | PowerShell | Windows | Unix/Linux |
Ruby > ZIP解凍
unzip.rb
|
|
$ unzip -l sample.zip
Archive: sample.zip
Length Date Time Name
--------- ---------- ----- ----
10 2013-03-27 11:14 sample1.txt
140 2013-03-27 11:14 sample2.txt
--------- -------
150 2 files
$ ruby unzip.rb
$ find hoge
hoge
hoge/sample1.txt
hoge/sample2.txt
$
Archive: sample.zip
Length Date Time Name
--------- ---------- ----- ----
10 2013-03-27 11:14 sample1.txt
140 2013-03-27 11:14 sample2.txt
--------- -------
150 2 files
$ ruby unzip.rb
$ find hoge
hoge
hoge/sample1.txt
hoge/sample2.txt
$
* 確認環境 Debian Linux(Wheezy)