Expansion of the acronym "grep"

Tim Olson tim at crackle.amd.com
Mon Jun 5 10:53:55 AEST 1989


In article <1989Jun4.185134.13185 at gpu.utcs.utoronto.ca> romwa at gpu.utcs.UUCP (Royal Ontario Museum) writes:
| grep < global regular expression

Almost.

"grep" comes from a (once) commonly-used ed command:

	g/RE/p

which meant to globally search for a Regular Expression and print each
occurance.  As for the other "greps", there is:

	fgrep - "fixed-string grep": grep optimized for fixed strings
		instead of regular expressions. 

	egrep - "extended grep": grep with full regular expression
		parsing instead of just the REs allowed in ed.

	-- Tim Olson
	Advanced Micro Devices
	(tim at amd.com)



More information about the Comp.unix.questions mailing list