Path: utzoo!attcan!utgpu!jarvis.csri.toronto.edu!rutgers!tut.cis.ohio-state.edu!att!cbnewsc!gregg From: gregg@cbnewsc.ATT.COM (gregg.g.wonderly) Newsgroups: comp.unix.questions Subject: Re: Unix regular expression question grep, sed Message-ID: <1165@cbnewsc.ATT.COM> Date: 7 Jun 89 14:54:02 GMT References: <9429@alice.UUCP> Organization: AT&T Bell Laboratories Lines: 23 From article <9429@alice.UUCP>, by ark@alice.UUCP (Andrew Koenig): > How about this? > > sed '/\/\*name\*\//,//d' outputfile Not to whine too loudly, but is it really necessary to make this look like magic? Just because you know that the RE routines take a NULL RE to mean 'use the last one specified', doesn't mean that such a 'feature' should always be exploited does it? Doesn't sed '/\/\*name\*\//,/\/\*name\*\//d' outputfile seem to be a slightly more educational solution to someone who asked for a solution, not knowing the answer? Not to pick on Andrew, I just hate incomplete examples without explanations for non-obvious things. -- ----- gregg.g.wonderly@att.com (AT&T bell laboratories)