Origin of the name grep

lcc.richard at UCLA-LOCUS.ARPA lcc.richard at UCLA-LOCUS.ARPA
Mon Aug 27 06:19:31 AEST 1984


From:            Richard Mathews <lcc.richard at UCLA-LOCUS.ARPA>

	Article-I.D.: pegasus.1641

	Does anybody know the origin of the word grep?
	-- 
	==> Ephrayim J. Naiman @ AT&T Information Systems Laboratories
	 (201) 576-6259
	Paths: [ihnp4, allegra, hogpc, ...]!pegasus!naiman

I believe that it comes from the 'ed' command:
	g/regular expression/p
which executes the print command on every line on which the "regular
expression" appears.  Thus 'grep' could be said to be an acronym for
"global regular expression print".

Richard M. Mathews
lcc!richard at ucla-cs



More information about the Comp.unix.wizards mailing list