Content-Type: text/plain Content-Disposition: inline Content-Transfer-Encoding: binary MIME-Version: 1.0 X-Mailer: MIME-tools 5.411 (Entity 5.404) RT-Send-CC: X-RT-Original-Encoding: iso-8859-1 Content-Length: 393 Actually, it seems to be the "s///p" form (print *if* a substitution was done) that IRIX sed is treating differently, and only when it's followed by more modifications to the pattern space, printing, etc. I believe the substitutions are arranged to always be performed, so using a separate print command seems to be a reasonable change, and it gets me the same results using IRIX and GNU sed.