home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!pipex!warwick!uknet!mcsun!sunic!ericom!eos.ericsson.se!etxmesa
- From: etxmesa@eos.ericsson.se (Michael Salmon)
- Newsgroups: comp.unix.questions
- Subject: Re: grep
- Message-ID: <1992Nov16.092645.522@ericsson.se>
- Date: 16 Nov 92 09:26:45 GMT
- References: <6370@sersun1.essex.ac.uk> <1992Nov12.144322.11444@ericsson.se> <1992Nov13.113839.25046@dlpinc00.rn.com>
- Sender: news@ericsson.se
- Reply-To: etxmesa@eos.ericsson.se (Michael Salmon)
- Organization: Ericsson Telecom AB
- Lines: 35
- Nntp-Posting-Host: eos6c02.ericsson.se
-
- In article <1992Nov13.113839.25046@dlpinc00.rn.com>,
- dlparker@dlpinc00.rn.com (David L. Parker) writes:
- |> In article <1992Nov12.144322.11444@ericsson.se>
- |> etxmesa@eos.ericsson.se (Michael Salmon) writes:
- |> >In article <6370@sersun1.essex.ac.uk>,
- |> >peter@essex.ac.uk writes:
- |> >|> A quick question I was asked this morning. "Why is grep so called?"
- |> >
- |> >It comes from an ed command:
- |> >
- |> >g/re/p
- |> >
- |> >i.e. globally search for a regular expression and print those lines
- |> >that match.
- |> >
- |>
- |> Actually it's Global Regular Expression Parser.
-
- Unfortunately Brian Kernigan and Rob Pike disagree with you, see
- page 18 of:
-
- The Unix Programming Environment
- Prentice Hall
- ISBN 0-13-937699-2
-
- --
-
- Michael Salmon
-
- #include <standard.disclaimer>
- #include <witty.saying>
- #include <fancy.pseudo.graphics>
-
- Ericsson Telecom AB
- Stockholm
-