delorie.com/archives/browse.cgi | search |
X-Spam-Check-By: | sourceware.org |
From: | "Dave Korn" <dave DOT korn AT artimi DOT com> |
To: | <cygwin AT cygwin DOT com> |
References: | <mn DOT 1b2c7d742b4ca532 DOT 51129 AT pbs DOT org> |
Subject: | RE: grep and exact matches help.. |
Date: | Tue, 3 Apr 2007 18:43:14 +0100 |
Message-ID: | <019001c77617$8e0eabc0$2e08a8c0@CAM.ARTIMI.COM> |
MIME-Version: | 1.0 |
X-Mailer: | Microsoft Office Outlook 11 |
In-Reply-To: | <mn.1b2c7d742b4ca532.51129@pbs.org> |
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 03 April 2007 18:33, Kevin Markle wrote: > Hello, > > I can't seem to find a way to get grep to do exact matches in cygwin. I > have looked at the man pages and can find nothing? :/ grep only does exact matches if you don't use any of the wildcard chars, perhaps 'exact matches' isn't quite what you mean. Are you perhaps looking for the '-o' option? Or do you mean you want to match an entire line, in which case put '^' at the start of your comparison-string and '$' at the end. cheers, DaveK -- Can't think of a witty .sigline today.... -- 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 |