From: Logan Capaldo Date: 2007-05-02T05:54:33+09:00 Subject: Re: file & split ------=_Part_114930_22860377.1178052870907 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline On 5/1/07, Marcin Kulisz wrote: > > hi everyone, > I'm very, very fresh in ruby so > I'm looking for help with a small problem. I've got a log file from wget > and I have to evaluate average download speed when downloading is still > going, so I'm trying to do this > > File.open(name) do |file| > > while line=file.gets > > tab=%w(line.split) this line is almost certainly wrong, what you wanted was probably tab = line.split to get the value of the 8th column you'd do eighth_column = tab[7] > end > > end > but how can I evaluate this 8th column from wget-log each line, I'm not > even sure about this few lines above > > -- > Posted via http://www.ruby-forum.com/. > > ------=_Part_114930_22860377.1178052870907--