Date: Thu, 6 Mar 1997 10:23:34 -0800 (PST) From: John Utz <spaz@u.washington.edu> To: hackers@freebsd.org Subject: awk bug? in 2.2 BETA? Message-ID: <Pine.OSF.3.95.970306101744.11587E-100000@becker1.u.washington.edu>
index | next in thread | raw e-mail
Hello;
could an awk literate person comment on this ? The behavior on the
follwing line of code appears to be awk version related. a linux guy
running 3.0 patch 0 gets a correct answer, my freebsd 2.2 BETA awk 2.15p5
does not.
mira: {60} cat fd1.dat | awk 'BEGIN { FS = " " }; END { printf "rf= %g; cf
= %g\n;", NR, NF }'
rf= 9801; cf = 0;
cf should be 3!
fd1.dat has 9801 lines and 3 colums of data, and this awk is not reporting
the columns....
1 1 9.99603081
1 2 9.99217796
1 3 9.98843479
1 4 9.98480034
1 5 9.98127365
1 6 9.97785187
1 7 9.97453499
1 8 9.97131729
1 9 9.96820164
1 10 9.96518326
1 11 9.96226025
1 12 9.95943356
1 13 9.95669937
1 14 9.95406055
1 15 9.95152092
1 16 9.94909954
1 17 9.94682789
1 18 9.9446888
1 19 9.94260406
1 20 9.94055557
1 21 9.93869877
1 22 9.93702602
1 23 9.93534756
fd1.dat (0%)
... it goes on and on, but u get the idea....
tnx!
*******************************************************************************
John Utz spaz@u.washington.edu
idiocy is the impulse function in the convolution of life
help
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.OSF.3.95.970306101744.11587E-100000>
