From: Robert Klemme Date: 2012-09-19T20:36:31+09:00 Subject: Re: Ruby - is it worth the effort? On Wed, Sep 19, 2012 at 1:29 PM, Robert Klemme wrote: PS: Here's probably a even more rubyesce solution - albeit not faster $ cat ruby-8.rb #!/usr/bin/env ruby f = 'FRED' puts File.foreach("results201101.dat").count {|line| line.include? f} -- remember.guy do |as, often| as.you_can - without end http://blog.rubybestpractices.com/