Path: utzoo!utgpu!jarvis.csri.toronto.edu!rutgers!apple!oliveb!mipos3!pete@escher.intel.com From: pete@escher.intel.com (Peter Johnson ~) Newsgroups: comp.unix.questions Subject: Re: Expansion of the acronym "grep" Message-ID: <219@mipos3.intel.com> Date: 6 Jun 89 20:53:59 GMT References: <25249@agate.BERKELEY.EDU> Sender: news@mipos3.intel.com Reply-To: pete@escher.intel.com (Peter Johnson ~) Organization: Replace me with your organization Lines: 25 In-reply-to: glass@mica.berkeley.edu In article <25249@agate.BERKELEY.EDU>, glass@mica writes: >What is the correct expansion of the acronym "grep"? I'm told that this >has come up in comp.unix.questions before, but the relevant articles are >no longer on my news server. I'd also be interested in knowing what the >acronyms for the other flavors of grep (e.g. egrp) expand to. > >--Brett "grep" stands for "global regular expression print". It got it's name from the documentation for ed, which gave the syntax for the print command as "g/re/p", where g is the line specifier, re is the regular expression (in slashes) and p is the print command. "fgrep" gets its name from "fast grep", and it only supports searching for strings (so the re in its name is a misnomer.) "egrep" means extended grep because it supports extended regular expressions. (ie. | and grouping, but not tagging) -Pete Peter Johnson pete@escher.intel.COM {amdcad,decwrl,hplabs,oliveb,pur-ee,qantel}!intelca!mipos3!pete