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.
Chris UK

2007-02-14, 7:57 am

On 14 Feb, 13:10, gaze...@xmission.xmission.com (Kenny McCormack)
wrote:
> In article <1171457522.647284.162...@a34g2000cwb.googlegroups.com>,
>
> Chris UK <chris.bai...@myrealbox.com> wrote:
>
>
>
> 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.


Kenny,

That almost got it - however the 0 value disappears, is there anyway I
can preserve a zero value result?

Cheers,
Chris.

Kenny McCormack

2007-02-14, 7:57 am

In article <1171459179.590863.300160@l53g2000cwa.googlegroups.com>,
Chris UK <chris.bailes@myrealbox.com> wrote:
>On 14 Feb, 13:10, gaze...@xmission.xmission.com (Kenny McCormack)
>wrote:
>
>Kenny,
>
>That almost got it - however the 0 value disappears, is there anyway I
>can preserve a zero value result?


I thought the goal was specifically to get rid of any trailing ".0".

Maybe time to get my crystal ball serviced.

Sponsored Links







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

Copyright 2008 codecomments.com