awk bug (or is it a feature)
pjbk at hwcs.UUCP
pjbk at hwcs.UUCP
Thu Apr 17 23:47:43 AEST 1986
Our version of awk does not allow one to use a field specified
by a numerical expression as the left hand side of an expression.
The file below will pass the standard input through unmodified,
although it is designed to replace the last field in each record
with "LAST FIELD". Is this a bug or a feature?
-----------------------
{ $NF = "LAST FIELD"
print}
-----------------------
--
Peter King, Heriot-Watt University
JANET: pjbk at uk.ac.hw.cs
ARPA: pjbk at cs.hw.ac.uk
or - pjbk%cs.hw.ac.uk at ucl-cs
UUCP: ..!ukc!cs.hw.ac.uk!pjbk
More information about the Net.bugs
mailing list