William James wrote:
>
> #!awk -f
> /^158/, /^165/ { count++
>   for (i=1; i<=NF; i++)
>     a[count, i] = $i + 0
> }
> END {
>   for (i=1; (i,1) in a; i++)
>   { for (j=1; (i,j) in a; j++)
>       printf "%f ", a[i,j]
>     print
>   }
> }

baptiste AuguiƩ wrote:
>
> How can I do that in Ruby?
> 

If that wasn't clear enough for you, here's another clue:  look at the 
title of the group you posted to.  Does it say 'awk' anywhere?



-- 
Posted via http://www.ruby-forum.com/.