sed & awk, Second Edition By Dale Dougherty & Arnold Robbins Following are the changes made in the 1/01 reprint. Here's the key to the markup: [page-number]: serious technical mistake {page-number}: minor technical mistake : important language/formatting problem (page-number): language change or minor formatting problem ?page-number?: reader question or request for clarification {51} In the script code for the gres command, the following has been inserted as the first line: #!/bin/sh Also, the superfluous double quotes around "3" in the first line of the script have been removed. Also, as it's common practice to output usage & error messages to stderr. The first two echo commands have been appended with >&2 as follows: echo Usage: gres pattern replacement file >&2 and: echo $3 is not a file. >&2 (163) In the last line: for a directories has been changed to: for directories