jwm@wucs.UUCP (John W. Matthews) (10/31/85)
Does anyone know of a way to put comments in a "sed" script? Failing that, does anyone know that it is not possible to do so? Please reply via E-mail as I do not monitor this group. John W. Matthews Institute for Biomedical Computing Lopata Hall, Box 1099 Washington University St. Louis, MO 63130 USA (314) 362-3119 ..!{ihnp4,seismo}!wucs!jwm
roger@rtech.UUCP (Roger Rohrbach) (11/17/85)
> Does anyone know of a way to put comments in a > "sed" script? Failing that, does anyone know that > it is not possible to do so? > (posting in addition to reply) The System V version of "sed" allows the first line of a script to begin with a '#'; the line is treated as a comment. The 4.2 BSD "sed" allows as many such lines as you care to sprinkle throughout your script. Roger Rohrbach {ucb,dec}vax!mtxinu!rtech!roger
sarwate@uicsl.UUCP (11/18/85)
You could also use a kludge such as /^$/s/Comment/ This is how one puts in comments??/ to put in additional comments in the System V version of "sed" Dilip V. Sarwate ihnp4!uiucdcs!uicsl!sarwate