Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!utgpu!water!watnot!watmath!clyde!cbatt!ihnp4!ihlpf!straka From: straka@ihlpf.UUCP Newsgroups: comp.sources.d Subject: Re: "look" utility? Message-ID: <1145@ihlpf.ATT.COM> Date: Wed, 25-Feb-87 10:42:59 EST Article-I.D.: ihlpf.1145 Posted: Wed Feb 25 10:42:59 1987 Date-Received: Sat, 28-Feb-87 04:11:36 EST References: <1916@cbdkc1.UUCP> <837@maynard.BSW.COM> Organization: AT&T Bell Laboratories - Naperville, Illinois Lines: 12 Summary: look - grep > look consults a sorted file and prints all lines that begin with string. > It uses binary search. > Note that look searches for a literal string, not a regular expression. > You could use grep, but for a sizable file look can be hundreds of times > faster. What about using fgrep? Or possibly grep "^string"? -- Rich Straka ihnp4!ihlpf!straka