Ken Thompson wrote UNIX as a document processor, and the command
grep
(from the initial letters of
g
lobal(ly) search
r
egular
e
xpression
p
rint) was his search engine. Thanks to James Harp for pointing out origin of this command's name.