bug-gawk
[Top][All Lists]
Advanced

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

Re: [bug-gawk] getline change of behavior in 4.0.0


From: Andrew Noymer
Subject: Re: [bug-gawk] getline change of behavior in 4.0.0
Date: Sat, 17 Mar 2012 11:38:09 -0700

In the old awk a "getline" could strip-off a header.  In the new it seems to be broken.

The program and input data are attached.  It is a pretty bare-bones example.

Thanks!

Andrew Noymer
UC Irvine

Sample runs:

$ gawk --version | grep "GNU A"
GNU Awk 4.0.0
$ awk -f grand_tot_remove_head.awk input_data.csv
grand total:    6

$ gawk --version | grep "GNU A"
GNU Awk 3.1.8
$ awk -f grand_tot_remove_head.awk input_data.csv
grand total:    9






Attachment: grand_tot_remove_head.awk
Description: application/awk

Attachment: input_data.csv
Description: Text Data


reply via email to

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