UNIX in a Nutshell: System V Edition by Daniel Gilly Here is the change that was made for the 11/98 reprint: {10-9} For sed command "P": changed the 1st code bock, the subsequent line, and the 2nd code block to read: function(arg1,arg2) function (arg1 arg2) The following script changes arg2, regardless of whether it appears on the same line as the function name: s/function(arg1,arg2)/function(arg1,XX)/ /function(/{ N s/arg2/XX/ P D }