Why does pipeline work this way?

Maarten Litmaath maart at cs.vu.nl
Tue Dec 19 03:54:35 AEST 1989


In article <1989Dec16.133416.3855 at virtech.uucp> cpcahil at virtech.uucp (Conor P. Cahill) writes:
\... If you really want this functionality, get the gnu grep sources and add
\a parameter to stop looking after the first match [...]

Or use sed:

	$ SED="
		/$pattern/!d
		p
		q
	"
	$ sed "$SED" file
-- 
  Sci.aquaria votes are only poisson distributed in France.  (Alan M Stanier) |
 Maarten Litmaath @ VU Amsterdam:  maart at cs.vu.nl,  uunet!mcsun!botter!maart



More information about the Comp.unix.questions mailing list