From owner-freebsd-current@FreeBSD.ORG Fri Aug 20 01:08:58 2010 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 1FFCD1065673 for ; Fri, 20 Aug 2010 01:08:58 +0000 (UTC) (envelope-from davidxu@freebsd.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id 0E7C68FC15; Fri, 20 Aug 2010 01:08:58 +0000 (UTC) Received: from [127.0.0.1] (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.4/8.14.4) with ESMTP id o7K18tk7041081; Fri, 20 Aug 2010 01:08:57 GMT (envelope-from davidxu@freebsd.org) Message-ID: <4C6DD5A8.3030701@freebsd.org> Date: Fri, 20 Aug 2010 01:08:56 +0000 From: David Xu User-Agent: Thunderbird 2.0.0.24 (X11/20100630) MIME-Version: 1.0 To: "Stein. Sandbech" References: <20100819092939.8824410657B8@hub.freebsd.org> <29BC1E84-9C05-4021-B8B9-E78825BEC571@wopr.ife.no> In-Reply-To: <29BC1E84-9C05-4021-B8B9-E78825BEC571@wopr.ife.no> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-current@freebsd.org Subject: Re: Official request: Please make GNU grep the default X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 20 Aug 2010 01:08:58 -0000 But I think BSD grep should be compatible with GNU grep, because almost all scripts are written for GNU grep before BSD grep appears, it is not practical to rewrite all existing scripts. Anyway, thanks for your help. David Xu Stein Morten Sandbech wrote: > Hi, > > GNU grep is OK. However standard BSD grep also work: > > find . -exec grep -i world {} /dev/null \; > > or even: > > find . -exec grep -in world {} /dev/null \; > > if you want linenumbers ... > > hth > > Stein Morten > > > > On Aug 19, 2010, at 11:29, freebsd-current-request@freebsd.org wrote: > >> Date: Thu, 19 Aug 2010 16:42:26 +0000 >> From: David Xu >> Subject: Re: Official request: Please make GNU grep the default >> To: Gabor Kovesdan >> Cc: delphij@freebsd.org, Andrey Chernov , Doug >> Barton , core@freebsd.org, current@freebsd.org >> Message-ID: <4C6D5EF2.2040603@freebsd.org> >> Content-Type: text/plain; charset=ISO-8859-1; format=flowed >> >> Gabor Kovesdan wrote: >> >>> Yes, I'm sorry for my slow reaction, I got a flu some time ago and that >>> prevented me from fixing the bugs earlier. I have several fixes in my >>> working copy, which are being discussed with my mentor. Probably, today >>> or tomorrow they will be committed. >>> >>> Gabor >>> >> When will the grep -H print file name for me ? it is rather painful >> that the feature is missing. :-( >> So I can not use it with find: >> >> find . -exec grep -H {} world \; >> I don't know which file contains the word world. >> >> Regards, >> David Xu > >