grepping for "Subject" in /usr/spool/news

Mark Horton mark at cbosgd.UUCP
Sat Oct 6 05:05:01 AEST 1984


In article <elsie.4003> ado at elsie.UUCP writes:
>The second point is what prompts this posting.  Folks may recall articles
>that went around a while back asking why "grep" wasn't smart enough to use
>the "fast fgrep" algorithm when appropriate.  The above results show that
>grep may be smarter than was thought.

It's well known in the UNIX circles that egrep is the fastest grep,
then grep, then fgrep.  This is strange but true.

Which reminds me of a story, which I belive I first heard from Mike Lesk.

It seems a woman ran into a meeting at Bell Labs, late, all out of
breath.  She said "I'm sorry I'm late, I was grepping my apartment
for my keys."

To which the reply came: "You should have used egrep, it's faster."



More information about the Comp.unix mailing list