home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #27 / NN_1992_27.iso / spool / comp / unix / question / 13467 < prev    next >
Encoding:
Text File  |  1992-11-15  |  1.4 KB  |  49 lines

  1. Path: sparky!uunet!pipex!warwick!uknet!mcsun!sunic!ericom!eos.ericsson.se!etxmesa
  2. From: etxmesa@eos.ericsson.se (Michael Salmon)
  3. Newsgroups: comp.unix.questions
  4. Subject: Re: grep
  5. Message-ID: <1992Nov16.092645.522@ericsson.se>
  6. Date: 16 Nov 92 09:26:45 GMT
  7. References: <6370@sersun1.essex.ac.uk> <1992Nov12.144322.11444@ericsson.se> <1992Nov13.113839.25046@dlpinc00.rn.com>
  8. Sender: news@ericsson.se
  9. Reply-To: etxmesa@eos.ericsson.se (Michael Salmon)
  10. Organization: Ericsson Telecom AB
  11. Lines: 35
  12. Nntp-Posting-Host: eos6c02.ericsson.se
  13.  
  14. In article <1992Nov13.113839.25046@dlpinc00.rn.com>, 
  15. dlparker@dlpinc00.rn.com (David L. Parker) writes:
  16. |> In article <1992Nov12.144322.11444@ericsson.se> 
  17. |> etxmesa@eos.ericsson.se (Michael Salmon) writes:
  18. |> >In article <6370@sersun1.essex.ac.uk>, 
  19. |> >peter@essex.ac.uk writes:
  20. |> >|> A quick question I was asked this morning. "Why is grep so called?"
  21. |> >
  22. |> >It comes from an ed command:
  23. |> >
  24. |> >g/re/p
  25. |> >
  26. |> >i.e. globally search for a regular expression and print those lines
  27. |> >that match.
  28. |> >
  29. |> 
  30. |> Actually it's Global Regular Expression Parser.
  31.  
  32. Unfortunately Brian Kernigan and Rob Pike disagree with you, see
  33. page 18 of:
  34.  
  35. The Unix Programming Environment
  36. Prentice Hall
  37. ISBN 0-13-937699-2
  38.  
  39. -- 
  40.  
  41. Michael Salmon
  42.  
  43. #include    <standard.disclaimer>
  44. #include    <witty.saying>
  45. #include    <fancy.pseudo.graphics>
  46.  
  47. Ericsson Telecom AB
  48. Stockholm
  49.