For Programmers: Free Programming Magazines  


Home > Archive > AWK > February 2007 > Re: Newbie AWK problem.









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author Re: Newbie AWK problem.
Kenny McCormack

2007-02-14, 7:57 am

In article <1171457522.647284.162710@a34g2000cwb.googlegroups.com>,
Chris UK <chris.bailes@myrealbox.com> wrote:
>Hi guys,
>
>Hi do I filter non-floating point characters (numerical plus the
>decimal place) within AWK?
>
>Typical values are:
>94.2
>94.0
>1.05
>0.003
>0/


Psychic tech support tells me that what you are looking for is:

{ print $1+0 }

but my crystal ball may be a little cloudy at the moment.

Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com