* Where did the name "grep" come from?
@ 1993-03-18 17:46 Jeffrey Mark Braun
1993-03-18 22:16 ` Duke Robillard
1993-03-22 14:05 ` Jeffrey Mark Braun
0 siblings, 2 replies; 8+ messages in thread
From: Jeffrey Mark Braun @ 1993-03-18 17:46 UTC (permalink / raw)
I have long wondered where the name "grep" came from? For those of you not
familiar with Unix, the "grep" command will search any file for any regular
expression you provide it. I understand stand the usefulness of such a
command, I just don't know why they chose this name "grep". If anyone can
explain this
to me, I would much appreciate it.
Frankly I've always considered the name to be a stupid idea, since it makes
learning Unix much more difficult. So if anyone out there can also "defend"
the name choice, please do so. Thanks.
Please send mail directly to me, since I often don't get a chance to read
the
news groups. Thanks again.
Jeff Braun
--
Name: Jeffrey M. Braun
Bitnet: jmbraun@iubacs
Internet: jmbraun@ucs.indiana.edu
Disclaimer: I do not speak for Indiana University, yeah, yeah, yeah, you
know the rest.
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: Where did the name "grep" come from?
1993-03-18 17:46 Where did the name "grep" come from? Jeffrey Mark Braun
@ 1993-03-18 22:16 ` Duke Robillard
1993-03-19 17:25 ` Peter Wemm
1993-03-22 14:05 ` Jeffrey Mark Braun
1 sibling, 1 reply; 8+ messages in thread
From: Duke Robillard @ 1993-03-18 22:16 UTC (permalink / raw)
In article <jmbraun-180393125459@welty.ucs.indiana.edu> jmbraun@iugate.ucs.indiana.edu (Jeffrey Mark Braun) writes:
I have long wondered where the name "grep" came from?
According the "The UNIX Programming Environment" by Kernighan
and Pike (who should know; they were there) it "comes from
the ed command g/regular-expression/p" (page 18).
By the way, if you don't like names like "grep" and "gnu"
and "UNIX" you're not really getting it....
--
Duke Robillard, DoD #130, duke@osf.org
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: Where did the name "grep" come from?
1993-03-18 22:16 ` Duke Robillard
@ 1993-03-19 17:25 ` Peter Wemm
1993-03-19 21:35 ` Duke Robillard
1993-03-22 14:12 ` Martin Kraemer
0 siblings, 2 replies; 8+ messages in thread
From: Peter Wemm @ 1993-03-19 17:25 UTC (permalink / raw)
In <DUKE.93Mar18171642@portal.osf.org> duke@osf.org (Duke Robillard) writes:
>In article <jmbraun-180393125459@welty.ucs.indiana.edu> jmbraun@iugate.ucs.indiana.edu (Jeffrey Mark Braun) writes:
> I have long wondered where the name "grep" came from?
>According the "The UNIX Programming Environment" by Kernighan
>and Pike (who should know; they were there) it "comes from
>the ed command g/regular-expression/p" (page 18).
I heard that it was pronounced as "[G]et [R]egular [E]xpression & [P]rint"...
Well.. it's easier to say quickly... :-)
>By the way, if you don't like names like "grep" and "gnu"
>and "UNIX" you're not really getting it....
>--
>Duke Robillard, DoD #130, duke@osf.org
--
Peter Wemm peter@DIALix.oz.au -or- peter@zeus.DIALix.oz.au
NIC handle: PW65 Current maintainer of the "NN" newsreader.
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: Where did the name "grep" come from?
1993-03-19 17:25 ` Peter Wemm
@ 1993-03-19 21:35 ` Duke Robillard
1993-03-22 14:12 ` Martin Kraemer
1 sibling, 0 replies; 8+ messages in thread
From: Duke Robillard @ 1993-03-19 21:35 UTC (permalink / raw)
In article <1ocvlk$qt6b@DIALix.oz.au> peter@DIALix.oz.au (Peter Wemm) writes:
>According the "The UNIX Programming Environment" by Kernighan
>and Pike (who should know; they were there) it "comes from
>the ed command g/regular-expression/p" (page 18).
I heard that it was pronounced as "[G]et [R]egular [E]xpression & [P]rint"...
Well.. it's easier to say quickly... :-)
The "g" is for "global" (cf. the ed man page)
--
Duke Robillard, DoD #130, duke@osf.org
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: Where did the name "grep" come from?
1993-03-18 17:46 Where did the name "grep" come from? Jeffrey Mark Braun
1993-03-18 22:16 ` Duke Robillard
@ 1993-03-22 14:05 ` Jeffrey Mark Braun
1993-03-23 16:54 ` Rob McAteer
1 sibling, 1 reply; 8+ messages in thread
From: Jeffrey Mark Braun @ 1993-03-22 14:05 UTC (permalink / raw)
In article <jmbraun-180393125459@welty.ucs.indiana.edu>,
jmbraun@iugate.ucs.indiana.edu (Jeffrey Mark Braun) wrote:
>
> I have long wondered where the name "grep" came from? For those of you not
> familiar with Unix, the "grep" command will search any file for any regular
> expression you provide it. I understand stand the usefulness of such a
> command, I just don't know why they chose this name "grep". If anyone can
> explain this to me, I would much appreciate it.
Well, as most of you guessed, grep is an acronym. It stands for...
Global Regular Expression Print,
but in case you wanted a second opinion here are some of the other
responses I
received. Comments are from me in order to point out the different ways
one
person tries to answer the question verses another.
Thanks goes out to everyone who responded.
-jeff braun
---------------------------------------------
General Regular Expression Parser
General Regular Expression Print
Generalized Regular Expression and Print
Get Random Expression
Get Random ExPression (I like the capitalization here.)
Get Regular Expression
Get Regular ExPression (Same as before)
Get Regular Expression and Print
Get Regular Expression Pattern
Global Regular Expression Print
Global Regular Expression and Print. (The "and" makes it almost english
like.)
Global/Regular Expression/Print (The slashs are good)
Globally find Regular Expression and Print
Global Regular Expression Parser
Grab Regular Expression and Print
Grammar Regular Expression Pattern matcher
Globally search for a Regular-Expression and Print
Group Regular Expression Print
Global search for regular expression and print out the results
Global Regular Expression Printer
Global Regular Expression Parser
Global Regular Expression Pattern
<G>lobal <R>egular <E>xpression <P>rint (I like the "<" ">" signs)
'Globally match RE and Print (it)'. REs are pattern matching strings like
"^[^c].*c" and "un?x$".
--
Name: Jeffrey M. Braun
Bitnet: jmbraun@iubacs
Disclaimer: I do not speak for Indiana University, yeah, yeah, yeah, you
know the rest.
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: Where did the name "grep" come from?
1993-03-19 17:25 ` Peter Wemm
1993-03-19 21:35 ` Duke Robillard
@ 1993-03-22 14:12 ` Martin Kraemer
1 sibling, 0 replies; 8+ messages in thread
From: Martin Kraemer @ 1993-03-22 14:12 UTC (permalink / raw)
Peter Wemm (peter@DIALix.oz.au) wrote:
: In <DUKE.93Mar18171642@portal.osf.org> duke@osf.org (Duke Robillard) writes:
: >In article <jmbraun-180393125459@welty.ucs.indiana.edu> jmbraun@iugate.ucs.indiana.edu (Jeffrey Mark Braun) writes:
: > I have long wondered where the name "grep" came from?
: >According the "The UNIX Programming Environment" by Kernighan
: >and Pike (who should know; they were there) it "comes from
: >the ed command g/regular-expression/p" (page 18).
: I heard that it was pronounced as "[G]et [R]egular [E]xpression & [P]rint"...
: Well.. it's easier to say quickly... :-)
How about
[G]eneralized [R]egular [E]xpression [P]arser?
Martin
--
#include <std/dsclm.h>
Martin Kraemer [martin%d255s004.zfe.siemens.de@mail.Germany.EU.net]
------------------------ Stolen from: zig@netcom.com ------------------------
Some assembly required. Use only as directed. No other warranty expressed or
implied.For recreational use only.All models over 18 years of age. May be too
intense for some viewers. As seen on TV. Avoid contact with skin. Keep away
from fire or flame. No Canadian coins. Driver does not carry cash. Apply only
to affected area. No user-serviceable parts inside. Simulated picture. Edited
for television. Penalty for private use. You must be present to win. Stay dry
------------------ This supersedes all previous notices ---------------------
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: Where did the name "grep" come from?
1993-03-22 14:05 ` Jeffrey Mark Braun
@ 1993-03-23 16:54 ` Rob McAteer
1993-03-24 16:37 ` Nick Dokos
0 siblings, 1 reply; 8+ messages in thread
From: Rob McAteer @ 1993-03-23 16:54 UTC (permalink / raw)
jmbraun@iugate.ucs.indiana.edu (Jeffrey Mark Braun) writes:
>In article <jmbraun-180393125459@welty.ucs.indiana.edu>,
>jmbraun@iugate.ucs.indiana.edu (Jeffrey Mark Braun) wrote:
>>
>> I have long wondered where the name "grep" came from? For those of you not
>> familiar with Unix, the "grep" command will search any file for any regular
>> expression you provide it. I understand stand the usefulness of such a
>> command, I just don't know why they chose this name "grep". If anyone can
>> explain this to me, I would much appreciate it.
>Well, as most of you guessed, grep is an acronym. It stands for...
> Global Regular Expression Print,
grep is an acronym for general regular expression parser.
>--
>Name: Jeffrey M. Braun
>Bitnet: jmbraun@iubacs
>Disclaimer: I do not speak for Indiana University, yeah, yeah, yeah, you
>know the rest.
--
Rob McAteer CAnet: rob@csi.on.ca
Carp Systems International Voice: (613) 592-5780
600 Terry Fox Drive, Suite 200 Fax: (613) 592-0584
Kanata, Ontario, Canada K2L 4B6
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: Where did the name "grep" come from?
1993-03-23 16:54 ` Rob McAteer
@ 1993-03-24 16:37 ` Nick Dokos
0 siblings, 0 replies; 8+ messages in thread
From: Nick Dokos @ 1993-03-24 16:37 UTC (permalink / raw)
grep is an acronym for general regular expression parser.
No, it is not. See Kernighan & Pike, "The Unix Programming
Environment", p.18. grep was constructed in an evening by Ken
Thompson, by yanking the code out of ed (which he had also written)
and creating a stand-alone program out of it. The ed command was
g/re/p
which stands for "Globally look for Regular Expression and Print".
Whether you want to say that it is an acronym or a literal reading
of the ed command is up to you.
--
Nick Dokos nick@osf.org
OSF Systems Engineering
Member of the League for Programming Freedom - write to lpf@uunet.uu.net
^ permalink raw reply [flat|nested] 8+ messages in thread
end of thread, other threads:[~1993-03-24 16:37 UTC | newest]
Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1993-03-18 17:46 Where did the name "grep" come from? Jeffrey Mark Braun
1993-03-18 22:16 ` Duke Robillard
1993-03-19 17:25 ` Peter Wemm
1993-03-19 21:35 ` Duke Robillard
1993-03-22 14:12 ` Martin Kraemer
1993-03-22 14:05 ` Jeffrey Mark Braun
1993-03-23 16:54 ` Rob McAteer
1993-03-24 16:37 ` Nick Dokos
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox