2008-05-23 uniq コマンドの実装 ruby ruby での実装、超簡易版。 temp = nil ARGF.each do |line| next if line == temp temp = line print line end