1826421 Members
3117 Online
109692 Solutions
New Discussion

Re: grep meaning

 
SOLVED
Go to solution
Craig A. Sharp
Super Advisor

grep meaning

Hello,

I realize that this is a very basic question.
What does "grep" stand for?

In the HP Certified training book grep stands for Global Regular Expression Print.

In the HP Unix users handbook, grep stands for General Regular Expression Parser.

In HP Class, I was taught that grep stands for Gramatical Regular Expression Parser.

Alright, which one is it?

Thanks,

Craig A. Sharp
21 REPLIES 21
Madhu Sudhan_1
Respected Contributor
Solution

Re: grep meaning

I vote for global regualr expression.

......Madhu
Think Positive
Rick Garland
Honored Contributor

Re: grep meaning

I am thinking that all applies since 'grep' can do all that.
f. halili
Trusted Contributor

Re: grep meaning

It's ----> Global Regular EXpression Print


derekh
James R. Ferguson
Acclaimed Contributor

Re: grep meaning

Hi:

My vote is for: "Global Regular Expression Print".

...JRF...
Denver Osborn
Honored Contributor

Re: grep meaning

I've also seen it as "global regular expression parser" and variations for the "p" - print, parser, program... It's al the same to me but since it's election day I'll have to vote for "global regular expression/print"
Dan Hetzel
Honored Contributor

Re: grep meaning

I'll vote for Global Regular Expression Parser
Everybody knows at least one thing worth sharing -- mailto:dan.hetzel@wildcroft.com
Paula J Frazer-Campbell
Honored Contributor

Re: grep meaning

Good Morning all

I am voting for:-

G o
R etrieve
E verything I asked for and
P rint it

Although I may be wrong !!!!!

Paula
If you can spell SysAdmin then you is one - anon
Ralph Grothe
Honored Contributor

Re: grep meaning

Gluttonous
Ruthlessly
Expurgatory
Phrasemonger

Madness, thy name is system administration
CHRIS_ANORUO
Honored Contributor

Re: grep meaning

Ha! Ha!! Ha!!!

I stand with Paula - what are acronym for (Go Retrieve Everything I ask for if it is there and Print it).
Any the right meaning is:"Global Regular Expression Print". The reason being that the parsed expression has to be printed or for an input to an output expression.
When We Seek To Discover The Best In Others, We Somehow Bring Out The Best In Ourselves.
Carlos Fernandez Riera
Honored Contributor

Re: grep meaning


I like Paula's definition.

But maybe:

Gary
Ritchie
Ed
Peter

Also about the last P there is another word not considered yet:

Global
Regular
Expression
PATTERN


See man grep.




unsupported
Dan Hetzel
Honored Contributor

Re: grep meaning

Could it be:
Gore's Rave Election Party ?

Dan
Everybody knows at least one thing worth sharing -- mailto:dan.hetzel@wildcroft.com
Paula J Frazer-Campbell
Honored Contributor

Re: grep meaning

Hi Guys/Gals,

I have looked it up.

As you know the Unix intuitive command structure was written in the sixties and early seventies by students who were not adverse to a little chemical stimulation!!

It stands for :-

G ee this is
R eally
E xtremely good
P ot.

Paula
If you can spell SysAdmin then you is one - anon
Craig A. Sharp
Super Advisor

Re: grep meaning

Ok, I see that I opened a keg of worms with this one. ;-)

I will go with Global Regular Expression Print as that is what the HP Cert book says.
It also is the answer that the majority of you came up with although I do like the others.

Thanks for the help.

Craig
Paul Hite
Trusted Contributor

Re: grep meaning

As an ordinary (non-root) user, type "ed /etc/passwd". You will get a character count of the file but no other prompt. Now type "g/ksh/p". You will get a list of all of the lines that contain "ksh". That ends the experiment. Type "q" to exit the editor without changing anything.

In the real olden days, before there was a "grep" that is how it was done. And notice that the "ksh" we used is a regular expression. So the way the command was documented was "g/re/p". Examine the man page for ed and you quickly confirm that the g is short for the global command. The syntax of the global command tells us that the final p is itself a command and the p command is clearly documented as "print".

So, in the context of ed, g/re/p means global regular expression print. This was being done often enough that a seperate command seemed justified. It was called "grep".
Alan Riggs
Honored Contributor

Re: grep meaning

Leave it to Paul to spoil everyone's fun by actually giving an authoritative (and correct) answer.

I still prefer:

Get
Ready!
Everything's
Printing
Paula J Frazer-Campbell
Honored Contributor

Re: grep meaning

G osh
R eally
E cstatically
P leased
If you can spell SysAdmin then you is one - anon
Tom Danzig
Honored Contributor

Re: grep meaning

Gotta
Read
Every
Post!
Alan Riggs
Honored Contributor

Re: grep meaning

G agging!!
R eally
E gregious
P uns
Victor BERRIDGE
Honored Contributor

Re: grep meaning

G arbidge
R andom
E xtracting
P rintout
Paula J Frazer-Campbell
Honored Contributor

Re: grep meaning

F inish
I nstantly
N eedless
D iscussion
.
|
C ease
P roducing
I nnocuous
O pinions

- (and do not)

P roduce
U nderlying
D amaging
V erbose
M essages

/ITRC/Fun


Paula

----Next !!!!!!!!
If you can spell SysAdmin then you is one - anon
James R. Ferguson
Acclaimed Contributor

Re: grep meaning

G ather
R elevant
E ntities
P rominently