Simple
Sand
Samples
プログラミング言語サンプル集
TOPへ
Hello World!(各言語のTOP)
printf 書式付き表示
pushd,popd ディレクトリ変更復帰
pwd カレントディレクトリ表示
rename ファイル名を一括変更
rev テキスト左右反転
rmdir 空のディレクトリ削除
scp リモートファイルコピー
sed ストリームエディタ
seq 数列生成
sort ソート
split ファイル分割
sleep 指定時間遅延
sum チェックサム
svn バージョン管理
tac テキスト上下反転
tail テキスト末尾抽出
tar 書庫操作、圧縮、解凍
touch タイムスタンプ更新
tr 文字一括置換
unexpand スペースタブ変換
uniq ソート済テキストの重複削除
vim vimエディタ
wc 単語数行数カウント
xargs 引数作成
zip,unzip ZIP圧縮解凍

説明のないとってもシンプルなサンプルプログラム集
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

Linuxコマンド > zip,unzip ZIP圧縮解凍

1
2
3
4
5
6
7
zip [-options] [-b path] [-t mmddyyyy] [-n suffixes]
      [zipfile list]
      [-xi list]
unzip [-Z] [-opts[modifiers]]
      file[.zip] [list]
      [-x xlist] [-d exdir]

ファイルを指定してZIP圧縮

~$ ls from
sample1.txt
sample2.txt
~$ zip to.zip from/sample1.txt
~$ ls *.zip
to.zip

ZIPファイルの内容を表示

~$ ls from
sample1.txt
sample2.txt
~$ unzip -l to.zip
Archive:  hoge.zip
  Length      Date    Time    Name
---------  ---------- -----   ----
        0  2003-03-02 11:53   from/
       10  2003-03-02 11:57   from/sample1.txt
      140  2003-03-02 11:57   from/sample2.txt
---------                     -------
      150                     3 files
to.zip

ディレクトリを指定してZIP圧縮

~$ ls from
sample1.txt
sample2.txt
~$ zip -r to.zip from
~$ ls *.zip
to.zip