Hi list,
In default configuration of Mandrake 8.1, awk is a link to gawk
/bin/awk -> gawk
> gawk --version
GNU Awk 3.1.0
Copyright (C) 1989, 1991-2001 Free Software Foundation.
Here below is described a bug of this version :
sample ASCII file (sample.txt)
------------------------------
ab AB
AB ab
cd CD
CD cd
dump of sample file for checking
--------------------------------
61 62 20 41 42 0a 41 42 20 61 62 0a 63 64 20 43 ab AB.AB ab.cd C
44 0a 43 44 20 63 64 0a D.CD cd.
simple awk file (simple.awk)
----------------------------
{ line++ }
! /^[A-Z]+/ { print line " -> " $0 }
command
-------
> cat sample.txt | awk -f simple.awk
result
------
1 -> ab AB
Strange result, isn't it?
The expected result is :
1 -> ab AB
3 -> cd CD
BUG! At first, I don't believe it. The awk in Mandrake 8.1 cannot be
used.
Is it the same behavior in Mandrake 8.2?
Want to buy your Pack or Services from MandrakeSoft?
Go to http://www.mandrakestore.com