So the "show me matching lines" functionality, which ed users made massive use of, could be summed up as "globally search for the regular expression and print it" - or, in ed format, g/regular expression/p. Or, to shorten it a bit more, g/re/p
Thanks, I've always wondered where "grep" came from! (But somehow have never gained the momentum necessary to look it up...)