Path: utzoo!attcan!utgpu!jarvis.csri.toronto.edu!rutgers!cs.utexas.edu!uunet!kim From: kim@kim.misemi (Kim Letkeman) Newsgroups: comp.unix.questions Subject: Re: grep Summary: beat me ... beat me ... talk about grep some more ... Message-ID: <781@kim.misemi> Date: 19 Jun 89 20:37:45 GMT References: <19983@adm.BRL.MIL> <4750023@hpirs.HP.COM> Reply-To: kim@spock.UUCP () Distribution: na Organization: Mitel corporation. Kanata (Ontario). Canada. Lines: 25 In article <4750023@hpirs.HP.COM>, runyan@hpirs.HP.COM (Mark Runyan) writes: > >/ zuro@ccf3.nrl.navy.mil / 4:44 am Jun 13, 1989 / > > > > I believe that grep translates to "global regular expression print". > > From _The_Unix_Programming_Environment_ by Brian Kernighan and Rob Pike: > > p 18 > > "...The name cames from the ed command g/regular-expression/p,..." > > This may not be the right answer, but it *is* documented. :-) You're both right, since "g/regular-expression/p" is the ed command to do a global search for a regular expression and print each line that matches. The short way of saying this is "global regular expression print". Surely there can't be many more catty ways of showing everyone how bright we are? Kim ...!uunet!mitel!spock!kim