From: Ryan Davis Date: 2007-06-02T04:08:05+09:00 Subject: Re: parse text with ruby On Jun 1, 2007, at 14:56 , kostas wrote: > I would like to parse this file with ruby, and to produce a new txt > file > where i have only ==> > > r 250 1006 -63 -65 91 -6 -8 319* > r 250 1015 -52 -72 91 -6 -8 319* > r 250 1019 -61 -83 92 -7 -8 319* Use the right tool(s) for the job: % cut -f 5 -d: x.txt | grep . | cut -c2- r 250 1006 -63 -65 91 -6 -8 319* r 250 1015 -52 -72 91 -6 -8 319* r 250 1019 -61 -83 92 -7 -8 319*