Path: utzoo!utgpu!watmath!clyde!bellcore!rutgers!mailrus!ames!pasteur!agate!saturn!ucscb.UCSC.EDU!smileyf From: smileyf@ucscb.UCSC.EDU (Shutoku Shia) Newsgroups: comp.unix.wizards Subject: sed ? Message-ID: <5706@saturn.ucsc.edu> Date: 9 Dec 88 11:01:22 GMT Sender: usenet@saturn.ucsc.edu Reply-To: smileyf@ucscb.UCSC.EDU (Shutoku Shia) Organization: University of California, Santa Cruz; CATS Lines: 28 I would like to know how to do the following with sed: 1) how to use substitution and negation(!) in a sed script, for example, suppose I DO NOT want to apply the following substitution "s/foo/FOO/g" on line(s) for which "/^\/$/" apply. 2) does anyone know of a sample sed script which allow one to modify a file, however, in this case, both the input file and the output file is the same file (input file does not refer to the instuction file -- i.e. sed script is NOT input file). In ex terms, what is the sed equivalent of, ex - junk <