grep replacement

Arthur David Olson ado at elsie.UUCP
Sat May 28 23:27:36 AEST 1988


> > There have been times when I wanted a grep that would print out the
> > first occurrence and then stop.
> 
> grep '(your_pattern_here)' | head -1

Doesn't cut it for

	grep '(your_pattern_here)' firstfile secondfile thirdfile ...
-- 
	ado at ncifcrf.gov			ADO is a trademark of Ampex.



More information about the Comp.unix.questions mailing list