Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!linus!security!genrad!grkermit!masscomp!clyde!floyd!harpo!seismo!hao!hplabs!sri-unix!JTW@MIT-XX.ARPA From: JTW@MIT-XX.ARPA Newsgroups: net.unix-wizards Subject: Re: the many greps Message-ID: <13697@sri-arpa.UUCP> Date: Tue, 22-Nov-83 00:16:29 EST Article-I.D.: sri-arpa.13697 Posted: Tue Nov 22 00:16:29 1983 Date-Received: Fri, 18-Nov-83 00:16:52 EST Lines: 13 From: John T. Wroclawski So why doesn't somebody do just that? There is a reason: the three greps interpret three different forms of regular expression. You can't take an arbitrary shell script which uses, say, 'grep' and substitute 'egrep' everywhere without first scrutinizing each regular expression to make sure it doesn't have parentheses, vertical bars, etc. Now wait a minute. What's to prevent the (one) unified grep from basing it's choice of algorithm partly on whether that algorithm can handle the particular regular expr grep was given as an argument? -------