Unix regular expression question grep, sed

Andrew Koenig ark at alice.UUCP
Sun Jun 4 09:53:49 AEST 1989


In article <1421 at xn.LL.MIT.EDU>, rkc at XN.LL.MIT.EDU (rkc) writes:

> I have a case where I want to delete, from a text file, something that looks
> like:

> /*name*/
> ...lots of multiple line junk
> /*name*/

How about this?

	sed '/\/\*name\*\//,//d' <inputfile >outputfile
-- 
				--Andrew Koenig
				  ark at europa.att.com



More information about the Comp.unix.questions mailing list