delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2009/06/05/12:50:54

X-Recipient: archive-cygwin AT delorie DOT com
X-Spam-Check-By: sourceware.org
Date: Fri, 5 Jun 2009 12:50:25 -0400
From: Christopher Faylor <cgf-use-the-mailinglist-please AT cygwin DOT com>
To: cygwin AT cygwin DOT com
Subject: Re: grep -f option is not working in release of grep (2.5.3-1)
Message-ID: <20090605165025.GC5103@ednor.casa.cgf.cx>
Reply-To: cygwin AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
References: <3046a3400906040003iaf36181i691a35e115d4524a AT mail DOT gmail DOT com> <0105D5C1E0353146B1B222348B0411A201BCE5EB42 AT NIHMLBX02 DOT nih DOT gov> <3046a3400906042217kc27eab4ua6e0e1ad8616d946 AT mail DOT gmail DOT com>
MIME-Version: 1.0
In-Reply-To: <3046a3400906042217kc27eab4ua6e0e1ad8616d946@mail.gmail.com>
User-Agent: Mutt/1.5.19 (2009-01-05)
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie DOT com AT cygwin DOT 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

On Thu, Jun 04, 2009 at 10:17:19PM -0700, Tulasi Ram wrote:
>I have tried by using below command. It didn?t work.
>
>$ grep -E -v -f "C:\Log\FindDeploymentErrors_Exclude.txt"
>CM_Setup2.log | grep -E -f "C:\Log\FindDeploymentErrors_Error.txt" -n
>1>"C:\Log\cc.txt"
>
>Pattern file( FindDeploymentErrors_Error.txt)is below..
>
>A member could not be added
>Access is denied
>cacl: object
>Cannot add rows to
>Error:
>ERROR:
>Error from
>Error occurred while loading document
>is not recognized as an external command
>is not recognized as an internal or external command
>Usage:
>recognized
>
>If I use above command to search patterns in  CM_Setup2.log, the
>output file cc.txt is showing only last pattern( recognized) search
>results.
>It seems it is overwriting one pattern results with next pattern
>results and finally shows the last pattern.
>I need the all pattern search results in same file i.e., cc.txt.
>
>Attached is the cygcheck.out file FYI

Did you make sure that the lines end with "\n" rather than "\r\n"?
You can run FindDeploymentErrors_Exclude.txt through d2u to make
sure.

cgf

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

- Raw text -


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