sed & awk, 2nd edition by Dale Dougherty & Arnold Robbins Following are the changes made in the 5/99 reprint: {57} The two instances of sample script have been updated to use global subsitution. The first one, for example, now reads: s/pig/cow/g s/cow/horse/g The second one now reads: s/cow/horse/g s/pig/cow/g {155} The check book balancer has been fixed to now allow deposits. The last two lines on the page now read: 125 Market -125.45 126 Hardware Store -34.95 {156} The same changes as page 155 with putting a negative sign before the amount spent on each item. Also, in the middle of the page, the last 5 lines of code now read: #2 Apply to each check record, adding amount from balance. { print $1, $2, $3 print balance += $3 # checks have negative amounts } {263} The ftp location for GNU awk has been updated. It now reads: ftp.gnu.org and /gnu/gawk/gawk-3.0.3.tar.gz