[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Error in Info example.
From: |
Mark M. Henwood |
Subject: |
Error in Info example. |
Date: |
Sun, 13 Feb 2005 18:40:44 -0500 |
The example at Gawk:Reading Files:Changing Fields is incorrect. The field
identifier should be $2 to get the output shown in the example.
Presently Reads:
$ awk '{ nboxes = $3 ; $3 = $3 - 10
> print nboxes, $3 }' inventory-shipped
Should Read:
$ awk '{ nboxes = $2 ; $2 = $2 - 10
> print nboxes, $2 }' inventory-shipped
Again, this change is only needed so that the output when run matches the
numbers given in the info document.
Mark M. Henwood
- Error in Info example.,
Mark M. Henwood <=