Date: Sun, 03 Oct 2010 08:29:35 +0200 From: Dominic Fandrey <kamikaze@bsdforen.de> To: Miroslav Lachman <000.fbsd@quip.cz> Cc: freebsd-stable <freebsd-stable@freebsd.org> Subject: Re: is there a bug in AWK on 6.x and 7.x (fixed in 8.x)? Message-ID: <4CA822CF.4060905@bsdforen.de> In-Reply-To: <4CA82024.8010503@bsdforen.de> References: <4CA78EE3.9020005@quip.cz> <4CA82024.8010503@bsdforen.de>
next in thread | previous in thread | raw e-mail | index | archive | help
On 03/10/2010 08:18, Dominic Fandrey wrote:
> On 02/10/2010 21:58, Miroslav Lachman wrote:
>> I think there is a bug in AWK in base of FreeBSD 6.x and 7.x (tested on
>> 6.4 i386 and 7.3 i386)
>>
>> I have this simple test case, where I want 2 columns from GeoIP CSV file:
>>
>> awk 'FS="," { print $1"-"$2 }' GeoIPCountryWhois.csv
> 
> You know that with this syntax FS="," is treated as a condition to
> run the following block in angle brackets?
Sorry, I meant to say curly brackets.
-- 
A: Because it fouls the order in which people normally read text.
Q: Why is top-posting such a bad thing?
A: Top-posting.
Q: What is the most annoying thing on usenet and in e-mail? 
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4CA822CF.4060905>
