www.delorie.com/archives/browse.cgi | search |
X-Recipient: | archive-cygwin AT delorie DOT com |
X-SWARE-Spam-Status: | No, hits=-2.0 required=5.0 tests=AWL,BAYES_00,SPF_PASS |
X-Spam-Check-By: | sourceware.org |
X-IronPortListener: | Outbound_SMTP |
From: | "Buchbinder, Barry (NIH/NIAID) [E]" <BBuchbinder AT niaid DOT nih DOT gov> |
To: | "cygwin AT cygwin DOT com" <cygwin AT cygwin DOT com>, |
"'Tulasi Ram'" <rams DOT kommuri AT gmail DOT com> | |
Date: | Thu, 4 Jun 2009 12:13:08 -0400 |
Subject: | RE: grep -f option is not working in release of grep (2.5.3-1) |
Message-ID: | <0105D5C1E0353146B1B222348B0411A201BCE5EB42@NIHMLBX02.nih.gov> |
References: | <3046a3400906040003iaf36181i691a35e115d4524a AT mail DOT gmail DOT com> |
In-Reply-To: | <3046a3400906040003iaf36181i691a35e115d4524a@mail.gmail.com> |
MIME-Version: | 1.0 |
X-IsSubscribed: | yes |
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 |
Tulasi Ram wrote on Thursday, June 04, 2009 3:04 AM: > In the latest release of grep (2.5.3-1), the -f option (read search > patters from a file) is not working for me. I have tried to search by > providing pattern file.=20 >=20 > I have tried by using below command. It didn=92t work. >=20 > grep -F -B 10 -A 0 -f FindDeploymentErrors_Error.txt CM_Setup2.log If your patterns end with "$" to anchor to the end of a line, and one file has DOS/Windows line endings (\r\n) while the other has unix line endings (\n), the patterns will not match. See what the following says. $ file DeploymentErrors_Error.txt CM_Setup2.log - Barry Disclaimer: Statements made herein are not made on behalf of NIAID. -- 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/
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |