[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Reporting a bug in grep
From: |
John Cowan |
Subject: |
Re: Reporting a bug in grep |
Date: |
Tue, 24 Jan 2006 12:14:46 -0500 |
User-agent: |
Mutt/1.3.28i |
Naresh Ranvah scripsit:
> I was using grep to find a expression
> ^=
> in a file that contained it. It does not list it.
>
> So, I use grep to look for the expression
> ^
> and it lists the whole file, definitely a lot of lines that did not have it.
> I seemed to be finding it in every line even where it wasn't there. Please
> have a look at it.
>
> May be I am making mistake, I am naive user or Linux.
You need to use fgrep instead. The character ^ has special meaning to grep
(the beginning of the line), and can't be used as-is in a grep pattern.
--
Using RELAX NG compact syntax to John Cowan
develop schemas is one of the simple http://www.reutershealth.com
pleasures in life.... http://www.ccil.org/~cowan
--Jeni Tennison <address@hidden>