Ryan Davis
6/1/2007 7:08:00 PM
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*