sed & awk, 2nd edition by Dale Dougherty and Arnold Robbins Here are the changes from the 5/98 reprint: {7} added the following footnote, anchored at "the exclamation point alone.": Well, you can set the histchars variable. See the csh man page. (21) para. -3: changed "and the city" to "or the city" {24} 1st code changed: }' $* | sort | awk -F, ' $1 == LastState { print " \t" $2 } $1 != LastState { LastState = $1 print $1 }' {25} 2nd code example changed to: $1 == LastState { print " \t" $2 } $1 != LastState { LastState = $1 print $1 print " \t" $2 }' {39} in table, changed "Alphanumeric characters" to "Printable characters (includes whitespace)" (47) para. 2: added "for grep" after "a regular expression" {54} table: Month, Day, Year entry: added "\" before the "}" after "2" {73} last code example, line 2: put "Chapter" in all caps {74} next-to-last code, line 3: put "Chapter" in all caps (74) para. -3: changed "TeX" to "LaTeX" (81) line 2: deleted "a blank or" (83) para. 3: changed "a blank line" to "blank lines" {83} 3rd code changed to: /^\.Ah/{ s/\.Ah */\ \ @A HEAD = / s/"//g s/$/\ / } {85} code example -3 changed to: /^\.XX /s/sed, substitution command/sed, substitute command/ code example -2 also changed: /^\.XX /s/substitution/substitute/ (88) changed footnote to read: The original UNIX documentation says that any leading tabs or spaces in the supplied text will disappear on output. This is the case on older versions, such as SunOS 4.1.x and /usr/ucb/sed on Solaris. System V and GNU sed do not delete the leading whitespace. If they disappear on your system, the solution is to put a backslash at the beginning of the line, preceding the first tab or space. The backslash is not output. {101} 2nd code example changed: .Rh 0 "DBclose" "closes a database" {105} code examples 1 and 2 changed to (respectively): sed -n " /^\.de *$mac/,/^\.\.$/{ p /^\.\.$/q }" $file and: /^\.\.$/q {212} para. 6, line -2: changed "Use "&"" to "Use "\&"" {246} last code on page: changed "orders.today" to "orders"