2008-05-23から1日間の記事一覧

uniq コマンドの実装

ruby での実装、超簡易版。 temp = nil ARGF.each do |line| next if line == temp temp = line print line end