Errata


Print Print Icon

Submit your own errata for this product.


The errata list is a list of errors and their corrections that were found after the product was released.

The following errata were submitted by our customers and have not yet been approved or disproved by the author or editor. They solely represent the opinion of the customer.


Color Key: Serious Technical Mistake Minor Technical Mistake Language or formatting error Typo Question



Version Location Description Submitted By
Printed Page 39
Changing the contents of a field

The first code on Page 39

awk '{ nboxes = $3 ; $3 = $3 - 10
> print nboxes, $3}' inventory-shipped

should actually return the following result:

ifiaz@nimitz:/tmp/fiaz > awk '{ nboxes = $3; $3 = $3 - 10
print nboxes, $3}' invshipped
25 15
32 22
24 14
...
...

instead of as the book shows:

13 3
15 5
15 5

which is for nboxes=$2 and $2 = $2 - 10.

Anonymous