Xref: utzoo comp.unix.wizards:9141 comp.unix.questions:7442 Path: utzoo!yunexus!oz From: oz@yunexus.UUCP (Ozan Yigit) Newsgroups: comp.unix.wizards,comp.unix.questions Subject: Re: grep replacement Message-ID: <501@yunexus.UUCP> Date: 7 Jun 88 18:24:45 GMT Article-I.D.: yunexus.501 References: <7939@alice.UUCP> Reply-To: oz@yunexus.UUCP (Ozan Yigit) Organization: York U. Computing Services - Magic Group Lines: 20 In article <7939@alice.UUCP> andrew@alice.UUCP writes: > >many people have written about patterns matching multiple lines. >grep will not do this. if you really need this, use sam by rob pike >as described in the nov 1987 software practice and experience. > Why should this not be done by grep ??? I think Rob Pike's "Structured Expressions" is the way to go for a modern grep, where newline spanning is supported, and the program does not die unexpectedly just because a file contains a line too long for a stupid internal "line size". (For an insightful discussion of this, interested readers could check out Rob's paper in EUUG proceedings.) oz -- The deathstar rotated slowly, | Usenet: ...!utzoo!yunexus!oz towards its target, and sparked | ....!uunet!mnetor!yunexus!oz an intense sunbeam. The green world | Bitnet: oz@[yulibra|yuyetti] of unics evaporated instantly... | Phonet: +1 416 736-5257x3976