From: WATANABE Hirofumi Date: 2002-11-15T19:00:05+09:00 Subject: [ruby-list:36487] Re: merge large files わたなべです。 Shin-ichiro HARA writes: > >while lines = handles.collect{|h| h.gets.to_s.chomp} > > break if lines.uniq == [""] > > print format % lines, "\n" > >end > > む、全列空行があるとまずいのでは。 あいや、まったく。 while (lines = handles.collect{|h| h.gets}).find{|x| x} print format % lines.collect{|l| l.to_s.chomp}, "\n" end 結局2つのときと同じものになってしまった。