delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2016/03/21/09:51:21

X-Recipient: archive-cygwin AT delorie DOT com
DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id
:list-unsubscribe:list-subscribe:list-archive:list-post
:list-help:sender:mime-version:content-type
:content-transfer-encoding:date:from:to:subject:in-reply-to
:references:message-id; q=dns; s=default; b=MKGN63DOfjSzkbmH2kzl
H6SQ59q2D+/1G4woXYi8yC6CmT07Lk8+rh3x7BWxJxczyKadx3xOp8UZ3ruH1ONl
HOlnB/AO8SM2i4TFlK30F5lT7FzSc+Z1dSyY/Yf/OOI8OUWrAIhRzRJwnuKeBlGq
K/FqGLFBr0hVdHaciemjaYs=
DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id
:list-unsubscribe:list-subscribe:list-archive:list-post
:list-help:sender:mime-version:content-type
:content-transfer-encoding:date:from:to:subject:in-reply-to
:references:message-id; s=default; bh=EIpahGNJa8FT90/NXRrFqOCguC
k=; b=qDH83mOWoMBEH3dDLcFGtJ6bKd2uCgVpE8oaSSV5JVMwLrGEq++kXHOGat
llTEmYitWXD8XOOv9uo9W+hYVpomQbBcNVurFWOhzeiMKe70IAw5HbGRaOHQHfIJ
Ihm7I+KqHOQ833LNI6IqdRjoyIpl6+QNYOj8VAe6VcEEd28SM=
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
Authentication-Results: sourceware.org; auth=none
X-Virus-Found: No
X-Spam-SWARE-Status: No, score=-0.6 required=5.0 tests=AWL,BAYES_50,RCVD_IN_DNSWL_LOW,SPF_PASS autolearn=ham version=3.3.2 spammy=436, Hx-languages-length:601, grimes, Grimes
X-HELO: lb2-smtp-cloud6.xs4all.net
MIME-Version: 1.0
Date: Mon, 21 Mar 2016 14:50:59 +0100
From: Houder <houder AT xs4all DOT nl>
To: cygwin AT cygwin DOT com
Subject: Re: BUG: grep (GNU grep) 2.24
In-Reply-To: <70C6F637A7E2844391D854CF15BB7A8F5AAA58FF06@TUS1XCHEVSPIN42.SYMC.SYMANTEC.COM>
References: <70C6F637A7E2844391D854CF15BB7A8F5AAA58FF06 AT TUS1XCHEVSPIN42 DOT SYMC DOT SYMANTEC DOT COM>
Message-ID: <b2c8e5c208024a0a1a4d80afc2642326@xs4all.nl>
X-Sender: houder AT xs4all DOT nl (WfT/2MEXnCHVePDKpQUMZg==)
User-Agent: XS4ALL Webmail
X-IsSubscribed: yes

On 2016-03-21 14:40, Gordon Grimes wrote:
> Hi,
> 
> I had generated a FILE by simply doing a 'find' on a directory and
> used grep to cull the results.  I wasn't working so I repeated and
> tried the following trivial 'grep':
> 
> % wc -l FILE
> 48786
> % grep . FILE
> 2240
> 
> Very wrong.
> 
> I reverted to version 2.21 and everything now works as expected:
> % grep . FILE
> 48786

@@ grep -v '.' vrf_xxx.txt | wc -l
80
@@ grep '.' vrf_xxx.txt | wc -l
356
@@ wc -l vrf_xxx.txt
436 vrf_xxx.txt
@@ grep --version
grep (GNU grep) 2.24
...

I am content.

Regards,

Henri

--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019