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 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 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline 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 Precedence: bulk List-Id: List-Unsubscribe: List-Subscribe: List-Archive: List-Post: List-Help: , 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/