Path: utzoo!utgpu!jarvis.csri.toronto.edu!rutgers!att!ulysses!andante!alice!ark From: ark@alice.UUCP (Andrew Koenig) Newsgroups: comp.unix.questions Subject: Re: Unix regular expression question grep, sed Message-ID: <9429@alice.UUCP> Date: 3 Jun 89 23:53:49 GMT References: <1421@xn.LL.MIT.EDU> Organization: AT&T Bell Laboratories, Liberty Corner NJ Lines: 15 In article <1421@xn.LL.MIT.EDU>, rkc@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' outputfile -- --Andrew Koenig ark@europa.att.com