bug-gnu-utils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Negative number comparisons in GAWK


From: NIDE Naoyuki
Subject: Re: Negative number comparisons in GAWK
Date: 21 Apr 2001 03:58:19 GMT

In article <address@hidden>,    address@hidden writes:
> Or force numeric conversion, e.g.,
> 
> > > gawk ' { if (0+$1 < -1.0) {print} } ' inputfile >outputfile

  Yes, it works if a comma is only at the end of the string, but
it may not work if the string is 'comma separated', such as '-12,345.67'.

                                                address@hidden



reply via email to

[Prev in Thread] Current Thread [Next in Thread]