Path: utzoo!utgpu!water!watmath!clyde!att!whuts!homxb!homxc!jgy
From: jgy@homxc.UUCP (J.YOUNG)
Newsgroups: comp.unix.wizards
Subject: Re: new grep
Summary: modifiers, more suggestions
Message-ID: <2561@homxc.UUCP>
Date: 29 Jun 88 02:53:08 GMT
References: <16237@brl-adm.ARPA> <4219@mtgzz.att.com> <199@elgar.UUCP>
Organization: AT&T Bell Laboratories, Holmdel
Lines: 20


In regards to the discussions regarding a grep option to
halt processing upon the first match being found.

A couple more suggestions:
	Seems you would like a flag which tells grep whether
	to terminate all searching or only on the current file.

	How about an option (only appicable when patterns start
	with "^") to tell grep that the file is lexically sorted
	(?what order?) so it can terminate if the input line
	is lexically greater than the pattern (s).
	This is usefull for searching through sorted lists (files,
	dictionaries, etc...)

John Young
AT&T BL.
Red Hill Rd,
Middletown, NJ 07748
201-615-4412