This is the mail archive of the
cygwin
mailing list for the Cygwin project.
RE: grep and exact matches help..
- From: "Dave Korn" <dave dot korn at artimi dot com>
- To: <cygwin at cygwin dot com>
- Date: Tue, 3 Apr 2007 18:43:14 +0100
- Subject: RE: grep and exact matches help..
- References: <mn.1b2c7d742b4ca532.51129@pbs.org>
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/