sed & awk, 2nd edition by Dale Dougherty & Arnold Robbins Here are the changes that were made for the 8/98 reprint: {24} code sample 1, replaced last four lines $1 != LastState { LastState = $1 print $1 }' with $1 != LastState { LastState = $1 print $1 print "\t" $2 }' {29} Figure 3-1, section 3: the two letter a's in "jar" and "abe" are now in bold, as they are in section 6. {39} Table 3-3, row 8, column 2: changed "Alphanumeric characters" to "Printable characters (includes whitespace)" (105) para. 1, line 3: changed "Writing sed Scripts," to "Writing sed Scripts)" (changed comma to close parenthesis.) {153} code sample 5: added a blank line between 2 and 3 lines so that the sample now reads as follows: John Robinson, 696-0987 Phyllis Chapman, 879-0900 2 records processed. {171} para. 2: added a footnote to the end of the line "Here's the info script using awk:". The footnote text is Remember that you need an awk that provides POSIX semantics for this to work. It may be named awk, nawk, or even something else! Check you local system documentation. ("awk" and "nawk" are in bold.) {195} code sample 1: changed lines 5 through 7 from if ( $i in acro ) { # if it matches, add description $i + acro[$i] " (" $i ")" to if ( $i in acro ) { acronym =$i # if it matches, add description $i = acro[$i] " (" $i ")" {236} code sample 4, added dash at the end of the line. The line now reads awk -v CMDFILE="uucp_commands" script - ("script" is still constant-width italic font.) {274} code sample, changed alignment so that it now reads a[1][1] = "hello" a[1][2] = "world" for (i in a [1]) print a[1][i]